IRC log of #zope for Monday, 2010-05-10

*** Kabz|4D has joined #zope00:06
*** andreypopp has joined #zope00:09
*** andreypopp has left #zope00:09
*** Kabz|4D has quit IRC00:12
*** ccomb has quit IRC00:14
*** hax404 has quit IRC00:20
*** tarek has joined #zope00:20
*** _bluetouff has quit IRC00:23
*** Hypergraphe has joined #zope00:24
*** _bluetouff has joined #zope00:26
*** _bluetouff has quit IRC00:41
*** _bluetouff has joined #zope00:42
*** aaronv has quit IRC00:49
*** davisagli is now known as davisagli|away01:05
*** davisagli|away is now known as davisagli01:06
*** ccomb has joined #zope01:09
*** Hypergraphe has quit IRC01:10
*** davisagli is now known as davisagli|away01:14
*** MatthewWilkes has joined #zope01:15
*** davisagli|away is now known as davisagli01:19
*** nebo has joined #zope01:20
*** tarek has quit IRC01:23
*** nebo has quit IRC01:24
*** igbun has joined #zope01:30
*** davisagli is now known as davisagli|away01:33
*** ccomb has quit IRC02:15
*** igbun has quit IRC02:24
*** shastry has joined #zope02:24
*** allisterb has quit IRC02:27
*** mr_jolly has left #zope02:36
*** allisterb has joined #zope02:41
*** dunny has joined #zope03:02
*** shastry has quit IRC03:12
*** regebro has quit IRC03:46
*** regebro has joined #zope04:24
*** giampaolo has quit IRC04:27
*** mcdonc has quit IRC05:04
*** mcdonc has joined #zope05:05
*** davisagli|away is now known as davisagli05:11
*** huajie has joined #zope05:38
*** baijum has joined #zope06:24
*** baijum has quit IRC06:37
*** shinygiftson has joined #zope06:46
*** _bluetouff has quit IRC06:55
*** skt_ has joined #zope07:14
*** touff has joined #zope07:16
*** MatthewWilkes has quit IRC07:19
*** redir has quit IRC07:20
*** baijum has joined #zope07:25
*** davisagli is now known as davisagli|away07:35
*** huajie has quit IRC07:44
*** davisagli|away is now known as davisagli07:48
*** touff has quit IRC07:58
*** huajie has joined #zope08:03
*** digitalmortician has quit IRC08:08
*** davisagli is now known as davisagli|away08:09
*** zagy has joined #zope08:33
*** davisagli|away is now known as davisagli08:36
*** timte has joined #zope08:37
*** davisagli has left #zope08:57
*** digilord has quit IRC08:57
*** shen-long has quit IRC08:57
*** digitalmortician has joined #zope09:03
*** bobo_b has joined #zope09:06
*** shen-long has joined #zope09:07
*** digilord has joined #zope09:08
*** redir has joined #zope09:09
*** hartym has joined #zope09:11
*** Wu has quit IRC09:22
*** regebro has quit IRC09:31
*** goschtl has joined #zope09:33
*** JaRoel|4_ has quit IRC09:34
*** tisto has joined #zope09:36
*** sashav has joined #zope09:46
*** kosh has quit IRC09:48
*** wosc has joined #zope09:53
*** kosh has joined #zope09:53
*** Kabz|4D has joined #zope09:58
*** mr_jolly has joined #zope10:01
CIA-46adamg 3.4 * r112219 zope.release/CHANGES.txt: keep up with changes after the latest updates10:03
*** sim_sim has joined #zope10:05
*** redir has quit IRC10:15
betabugkosh: now I am :-)10:16
koshhehe10:16
koshwell I solved my problem long since10:16
betabugah, ok :-)10:16
*** regebro has joined #zope10:17
*** JaRoel|4D has joined #zope10:23
*** huajie has quit IRC10:24
*** phimic has joined #zope10:30
*** planetzopebot has quit IRC10:33
*** planetzopebot has joined #zope10:34
*** ccomb has joined #zope10:54
*** MJ has joined #zope10:59
*** Wu has joined #zope11:04
*** JaRoel|4D has quit IRC11:09
*** JaRoel|4D has joined #zope11:10
*** redir has joined #zope11:31
*** phimic has quit IRC11:32
*** huajie has joined #zope11:33
*** TomBlockley has joined #zope11:39
*** eperez has joined #zope11:39
*** tarek has joined #zope11:43
*** sunew has joined #zope11:59
*** TomBlockley has quit IRC12:07
*** bobo_b has quit IRC12:22
*** redir has quit IRC12:26
*** teix has joined #zope12:29
*** fredvd has joined #zope12:36
*** neo|4D has joined #zope12:36
*** phimic has joined #zope13:06
*** otacon has joined #zope13:10
*** tarek has quit IRC13:12
*** tarek has joined #zope13:13
*** menesis has quit IRC13:36
*** fredvd is now known as fredvd|lunch13:43
*** emrojo has joined #zope14:02
*** skt_ has quit IRC14:10
*** aaronv has joined #zope14:11
*** emrojo has quit IRC14:14
*** fredvd|lunch is now known as fredvd14:18
*** benji has quit IRC14:25
*** dayne has joined #zope14:30
*** thetet has joined #zope14:36
*** tarek has quit IRC14:43
*** Erikchs has joined #zope14:45
*** MJ is now known as MJ|lunch14:45
*** TomBlockley has joined #zope14:52
*** dayne has quit IRC14:57
*** benji has joined #zope15:13
*** MJ|lunch is now known as MJ15:14
*** ccomb has quit IRC15:22
*** TomBlockley has quit IRC15:34
*** TomBlockley has joined #zope15:35
*** regebro has quit IRC15:39
*** regebro has joined #zope15:40
*** r0ver has joined #zope15:42
*** Erikchs has quit IRC15:43
*** shinygiftson has quit IRC15:51
*** allisterb has quit IRC15:53
*** sidnei has joined #zope15:55
*** MrTango has joined #zope16:01
*** redir has joined #zope16:07
*** allisterb has joined #zope16:12
*** igbun has joined #zope16:15
*** TomBlockley has quit IRC16:21
*** TomBlockley has joined #zope16:31
*** alvaro_ has joined #zope16:34
*** dunny has quit IRC16:37
*** dunny has joined #zope16:38
*** TomBlockley has quit IRC16:48
*** mgedmin has joined #zope16:53
CIA-46benji_york * r112220 /Sandbox/J1m/zodb-doc/intro.txt: copyediting17:00
*** TresEquis has joined #zope17:04
*** wosc has quit IRC17:09
*** jan_s has quit IRC17:13
*** TomBlockley has joined #zope17:14
*** digitalmortician has quit IRC17:16
*** jan_s has joined #zope17:17
*** hever has joined #zope17:18
*** neo|4D has quit IRC17:22
*** neo|4D has joined #zope17:22
*** chaoflow has joined #zope17:23
CIA-46wichert * r112221 Products.PluggableAuthService/Products/PluggableAuthService/www/ (arrow-up.gif arrow-down.gif arrow-left.gif arrow-right.gif): Zap bogus executable flag17:30
CIA-46wichert * r112222 Products.PluggableAuthService/Products/PluggableAuthService/plugins/www/zuUsers.zpt: & needs to be escaped (fixes problems with chameleon)17:30
*** sashav has quit IRC17:32
*** timte has quit IRC17:36
*** baijum has quit IRC17:36
*** neo|4D has quit IRC17:39
*** hever has quit IRC17:39
sim_simHey folks. Im using zope.testing and z3c.testsetup for tagging/running my test. But, I have a problem that is getting painful, I have not taggued my tests (in at least two parts: unit and functional test). Is there a good way to tag my tests, and to launch only those ? It would rocks as i am trying to improve my unit tests. Thanks a lot17:39
*** neo|4D has joined #zope17:39
* mgedmin likes to keep his unit and functional tests in separate directories17:40
* betabug does the same as mgedmin, only way to keep the partial appearance of sanity17:40
*** neo|4D has quit IRC17:40
*** neo|4D has joined #zope17:40
sim_simmgedmin, betabug :) yeah but when using doctest, you have your test all around17:41
*** giampaolo has joined #zope17:41
mgedminbut then I have bits of repetitive code in each directory: test_all.py with a def test_suite(): return helper_function_that_globs_all_txt_files_and_adds_them_to_a_layer()17:41
mgedminI don't use z3c.testsetup17:41
mgedminand I don't use *.txt files for unit tests (those turned out to be a Really Bad Idea)17:41
mgedminwell, there _are_ a couple of doctest files added to my test suites17:41
mgedminbut the bulk of my unit tests are in *.py files17:42
mgedmin(they're mostly doctests, though)17:42
*** agroszer has joined #zope17:43
*** touff has joined #zope17:44
sim_simall right cause my point was running coverage on unit test, and running coverage on functionnal test, separately. As all is mixed up, i don't know if my unittest does test properly the code (eg: or if this is a callback function of another module that is triggered during a functionnal test, that cover this line)17:45
CIA-46wichert * r112223 Products.PluggableAuthService/Products/PluggableAuthService/www/two_lists.zpt: Close br elements as well17:46
sim_simmgedmin, so you put no unit test in separate *.txt, but you have mixed unittest and functionnal test in doctest in the code, _plus_ a separate directory for unittest and doctest, is that it N17:47
sim_sim(*.txt files are in the separate dir)17:47
mgedmindo you use layers for your functional tests?17:48
sim_simmgedmin, yep17:50
mgedminmy scheme is the "old" zope 3 scheme: package/tests/test*.py -- unit tests; package/ftests/test*.py and *.txt -- functional tests; package/*.txt -- API docs that are also included in the unit test suite to make sure they're up to date17:50
sim_simbut also for unit test17:50
mgedminso, if you want to compute unit test coverage, do something like bin/test --coverage outdir --layer YourUnitTestLayer17:50
mgedminmy unit tests are layerless, so I can do bin/test -u to run just them17:50
*** dayne has joined #zope17:51
sim_simmgedmin, yep, but in my case -u does not work as it distinguish unittest from functional one, as using or not layers.17:52
mgedminright, that's why I suggested explicitly naming the layer you want17:52
sim_simyour advice is to add all the unittest in a layer and to run it ?17:52
mgedminIIRC you can specify more than one17:52
* mgedmin pauses17:53
mgedminyou told me you already added all your unit tests to a layer!17:53
sim_simIndeed but this layer may be shared among multiple functional or unit test17:53
sim_simthose are helper function that i may need everywhere17:53
mgedminwell, there are many filtering options in zope.testing.testrunner17:53
sim_simso I rather create a lower layer, and add my unittest in it I suppose17:53
mgedminyou could play with directory names, e.g.17:54
mgedminbut yeah, I'd recommend separate layers for unit and functional tests17:54
mgedminre: "play with directory names17:54
sim_simOk, thanks a lot for your advice17:55
mgedminif all your functional tests are in a directory named ftests, then bin/test --tests-pattern '^tests$' will skip them17:55
mgedminstill, layers is simpler and cleaner17:55
sim_simThis may be possible to stick with zope.testing, I was wondering if they were a third party tools that would enable me to tag some test as functionnal or not, and to get them run17:55
sim_simk17:56
*** phimic has quit IRC17:59
*** JaRoel|4D has quit IRC18:03
*** JaRoel|4D has joined #zope18:05
*** daMaestro has joined #zope18:06
*** hever has joined #zope18:10
sim_simAnd I have a newbie question, it has not been clear for me: what s the difference between -s PACKAGE and -m MODULE, in zope.testing ? Thanks18:12
mgedmin-s cuts off directory traversal, so might be a bit faster18:15
mgedmin-m cuts off importing of modules, but the files have already been traversed18:16
mgedminthis was important back when we had slow hard disks, little RAM for disk cache, and laaarge Zope 3 source trees18:16
*** runyaga_ has joined #zope18:19
*** runyaga has joined #zope18:19
TresEquissim_sim: I would rethink the "put unittests in a layer" approach18:23
TresEquislayers imply shared setup across multiple runs18:23
CIA-46wichert * r112224 z3c.form/ (src/z3c/form/form.py CHANGES.txt): applyChanges should not try to compare old and new values of the old value can not be accessed.18:23
CIA-46wichert * r112225 z3c.form/ (3 files in 2 dirs): Fix DictionaryField to conform to the IDataManager spec: get() should raise an exception if no value can be found.18:23
CIA-46wichert * r112226 z3c.form/src/z3c/form/ (field.py object.py converter.py): Fix a few pyflakes warnings. There are a lot more, but I'll leave those for others18:23
CIA-46wichert * r112227 z3c.form/src/z3c/form/form.py: Improve change test18:23
TresEquiswhich generally makes for poorly-isolated unit tests18:23
*** sunew has quit IRC18:24
TresEquisSplit the current layer into two pieces:  one a base class (or module) with the shared helper functions18:24
TresEquisand one the actual "layer" part which does shared functional test setup.18:25
TresEquisthen your unit tests use the shared base class / module, but don't have a layer18:25
*** tiwula has joined #zope18:26
sim_simmgedmin, thanks a lot18:27
*** touff has quit IRC18:27
*** JaRoel|4D has quit IRC18:27
sim_simTresEquis, so for unittest rather than extending some layer, I would have to make an import of the help module ?18:28
*** JaRoel|4D has joined #zope18:29
*** JaRoel|4_ has joined #zope18:30
*** JaRoel|4D has quit IRC18:30
sim_simTresEquis, should my functional and unittest (that both need the same helpers), get the exactly the same helper but in a different way : one package as a module and needing to be import for unittest and one as a layer that should be inherited for functional test ?18:30
sim_sim(sorry for my many english mistakes, trying to improve!)18:31
*** TomBlockley has quit IRC18:31
TresEquissim_sim: votre anglais est parfait ;)18:34
TresEquisI would factor the shared base class / module such that both functional and unit tests would use it the same way18:35
*** baijum has joined #zope18:35
TresEquisbut keep the layers out of the picture (they are really only supposed to be for setup / teardown)18:35
mgedminTresEquis, do you have something against using layers for explicit grouping of tests?18:37
mgedmine.g. sim_sim's use case: compute testing coverage of _unit_ tests only18:37
TresEquismgedmin: I do18:39
TresEquisI think unit tests should be clean, small, fast18:39
TresEquisand that layers are the wrong abstraction for them18:39
TresEquisI think the utility of grouping them goes down sharply once the Z3 monolith exploded into separate projects18:40
TresEquisI also think unit tests should run with virtually no support from the testrunner beyond stdlib's unittest18:41
*** tisto has quit IRC19:10
*** alecm has joined #zope19:11
*** redir has quit IRC19:20
*** goschtl has quit IRC19:23
*** hever has quit IRC19:26
CIA-46ulif * r112228 grokui.codebrowser/ (LICENSE.txt COPYRIGHT.txt): Comply to repository policy.19:27
CIA-46ulif * r112229 grokui.introspector/ (10 files in 3 dirs): Comply to repository policy.19:27
CIA-46ulif * r112230 grokui.quickstart/ (bootstrap.py COPYRIGHT.txt LICENSE.txt): Comply to repository policy.19:27
CIA-46ulif * r112231 grokui.zodbbrowser/ (LICENSE.txt COPYRIGHT.txt): Comply to repository policy.19:27
*** fredvd has quit IRC19:29
*** aaronv_ has joined #zope19:39
*** aaronv has quit IRC19:40
*** aaronv_ is now known as aaronv19:40
*** Hypergraphe has joined #zope19:43
*** neo|4D has quit IRC19:45
*** huajie has quit IRC19:46
*** JaRoel|4_ has quit IRC19:46
*** Kabz|4D has quit IRC19:46
CIA-46ulif * r112232 gzo.plonepolicy/ (COPYRIGHT.txt LICENSE.txt): Comply to repository policy.19:47
CIA-46ulif * r112233 gzo.plonesmashtheme/setup.py: Bump version number.19:47
CIA-46ulif * r112234 gzo.plonesmashtheme/ (CHANGES.txt COPYRIGHT.txt LICENSE.txt): Comply to repository policy/add history.19:48
CIA-46ulif * r112235 gzo/ (LICENSE.txt bootstrap.py COPYRIGHT.txt): Comply to repository policy.19:48
*** MJ has quit IRC19:56
*** davisagli has joined #zope20:01
*** digilord has quit IRC20:11
*** tarek has joined #zope20:12
*** eperez has quit IRC20:19
*** otacon has quit IRC20:20
*** Kabz|4D has joined #zope20:21
*** dvschramm has joined #zope20:24
*** RaFromBRC has joined #zope20:31
*** runyaga has quit IRC20:32
*** runyaga_ has quit IRC20:32
*** r0ver has left #zope20:33
*** runyaga has joined #zope20:35
*** runyaga_ has joined #zope20:35
*** dvschramm has quit IRC20:36
*** Kabz|4D has quit IRC20:39
*** thetet has quit IRC20:41
*** igbun has quit IRC20:44
*** baijum has quit IRC20:44
*** JaRoel|4D has joined #zope20:53
*** teix has quit IRC20:53
*** sim_sim has quit IRC20:59
*** redir has joined #zope21:14
*** dayne has quit IRC21:14
CIA-46tseaver * r112236 zope.repositorypolicy/RULES.txt: Flesh out rules, notes about how to conform.21:16
CIA-46tseaver * r112237 zope.repositorypolicy/ (setup.py RULES.txt README.txt): Get pacakge docs into more-or-less canonical form.21:16
*** dayne has joined #zope21:24
*** agroszer has quit IRC21:24
*** agroszer_ has joined #zope21:24
*** jim_SFU has joined #zope21:40
*** mgedmin has quit IRC21:45
*** redir_ has joined #zope22:04
*** redir has quit IRC22:06
*** redir_ is now known as redir22:06
*** aaronv has quit IRC22:10
*** daMaestro has quit IRC22:20
*** JaRoel|4D has quit IRC22:22
*** JaRoel|4D has joined #zope22:24
*** allisterb has quit IRC22:24
*** shaunw has joined #zope22:25
*** daMaestro has joined #zope22:33
*** agroszer_ has quit IRC22:39
*** allisterb has joined #zope22:39
*** igbun has joined #zope22:48
*** neo|4D has joined #zope22:48
*** Kabz|4D has joined #zope22:50
*** neo|4D has quit IRC22:52
*** shastry has joined #zope23:02
*** allisterb has quit IRC23:08
*** TomBlockley has joined #zope23:15
*** TomBlockley has quit IRC23:17
*** timte has joined #zope23:20
*** allisterb has joined #zope23:24
*** igbun has quit IRC23:25
*** ccomb has joined #zope23:26
*** igbun has joined #zope23:26
*** alecm has quit IRC23:36
*** aaronv has joined #zope23:37
*** igbun has quit IRC23:38
*** menesis has joined #zope23:46
CIA-46jens * r112238 zope.repositorypolicy/README.txt:23:47
CIA-46- correct typos23:47
CIA-46- the license value in setup.py is OK as long as it starts with "ZPL"23:47
*** Charlie_X has joined #zope23:49
*** Charlie_X has quit IRC23:51
*** alecm has joined #zope23:52
*** menesis has quit IRC23:58
*** menesis1 has joined #zope23:58
*** neo|4D has joined #zope23:59

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!