IRC log of #zope3-dev for Saturday, 2005-02-19

*** tvon has joined #zope3-dev00:09
Workbliaif anyone could look at 376 an fix it, he would save me a lot of time00:09
Workbliaissue 376 in zope collector00:09
Workblia36700:09
Workblia;)00:09
*** bskahan has quit IRC00:09
*** bskahan has joined #zope3-dev00:10
*** tvon|x31 has joined #zope3-dev00:12
*** tvon has quit IRC00:26
*** tvon|desk has joined #zope3-dev00:28
*** tvon|x31 has quit IRC00:32
*** d2m has quit IRC00:32
*** bskahan has quit IRC00:32
*** bskahan has joined #zope3-dev00:33
*** tvon has joined #zope3-dev00:36
*** d2m has joined #zope3-dev00:42
*** tvon|desk has quit IRC00:46
*** bskahan has quit IRC00:52
*** tvon has quit IRC00:54
*** mgedmin has quit IRC00:58
*** bskahan has joined #zope3-dev01:19
_projekt01Workblia, you don't have committ permission on the zope3 trunk?01:26
*** GaryPoster has quit IRC01:29
*** tvon|desk has joined #zope3-dev01:33
*** benji_york has quit IRC01:35
*** bskahan has quit IRC01:36
*** philiMAC has joined #zope3-dev01:42
*** philiMAC is now known as philiKON01:43
*** alga has quit IRC01:44
*** tvon has joined #zope3-dev01:44
*** tvon|desk has quit IRC01:50
*** bskahan has joined #zope3-dev01:51
*** mexiKON has quit IRC02:00
*** tvon has quit IRC02:06
*** tvon has joined #zope3-dev02:07
*** J1m has quit IRC02:11
*** tvon|desk has joined #zope3-dev02:11
*** tvon|x31 has joined #zope3-dev02:28
*** tvon has quit IRC02:28
*** GaryPoster has joined #zope3-dev03:34
*** GaryPoster has quit IRC04:05
*** GaryPoster has joined #zope3-dev04:08
*** vlado has quit IRC04:22
*** GaryPoster has quit IRC04:41
*** Jim7J1AJ1 has joined #zope3-dev04:44
*** Jim7J1AJH has quit IRC04:45
*** d2m has quit IRC04:59
*** Jim7J1AJ1 has quit IRC05:10
*** Jim7J1AJH has joined #zope3-dev05:10
*** _projekt01 has quit IRC05:28
*** hazmat has joined #zope3-dev05:41
*** beorn has joined #zope3-dev09:46
*** beorn has left #zope3-dev09:46
*** zagy has quit IRC10:15
*** zagy has joined #zope3-dev11:36
*** hazmat has quit IRC12:01
*** d2m has joined #zope3-dev12:15
*** philiKON has quit IRC12:22
*** zagy has quit IRC12:37
*** Theuni has joined #zope3-dev12:37
*** zagy has joined #zope3-dev12:53
*** mgedmin has joined #zope3-dev15:16
*** The|uni has joined #zope3-dev15:21
*** Theuni has quit IRC15:25
*** J1m has joined #zope3-dev15:37
srichterJ1m: Is it now possible to compare dicts in doctests?15:46
srichter(I really like how the new apidoc API turns out)15:48
J1mI don't know what you mean.15:49
J1mIt has always been possible to compare dicts in doctests.15:49
J1mDoctest doesn't place any restrictions on comparing dicts.15:49
srichterbut if I do:15:49
srichter>>> {'1': '15:49
J1mAre you asking whether there is a way to consistently show dicts?15:49
srichter>>> {'1': 'one', '2': 'two'}15:50
srichterI cannot expect this order back15:50
srichterbecause items are not ordered15:50
rejjbut you can be explicit about the contents you expect15:50
srichteryes, I guess so :-)15:50
J1mfrom doctest.doctestunit import pprint15:50
J1mpprint(d)15:50
srichterahh, I used my own homebrewed one till now15:50
srichtercool15:50
J1mwill sort the dict15:50
srichterthat's what I need15:51
srichterthanks15:51
J1mThis simply uses pprint with a widgth of 1.15:51
J1mpprint doesn't sort unless it wraps. :/15:51
rejjpprint has some oddness though15:51
srichteryeah, I remember this discussion15:51
J1mrejj, how so>15:52
J1mrejj, how so?15:52
rejjthe tests that fail under python 2.4 are because layers in a skin come out ordered differently than under 2.315:52
rejjand the test is using pprint15:52
J1mI didn't know we still has tests failing in 2.4.15:53
J1mI didn't know we still had tests failing in 2.4.15:53
rejjthere's a patch in the collector (somewhere, I can't remember the number) to define __lt__ and explicitly call .sort() to resolve this15:53
J1m:(15:53
rejjbut the author stated that they weren't sure this was the optimal solution15:53
rejjTwo tests fail under 2.415:53
srichterbut this was not because of that15:53
J1msrichter, you haven't fixed those yet?15:53
srichterand these two failures were fixed recently15:53
J1mwhew15:53
srichternot by my but by the guy who reported them15:54
rejjhow recent? they failed when I checked .. a few days-ish ago15:54
srichterrecently; I dunno when15:55
rejjI guess I should update15:55
srichterJ1m: can I also allow globally to ignore whitespace?16:00
J1mhuh?16:01
J1mWhat do you mean globally?16:01
srichterright nwo I always say: #doctest:+NORMALIZE_WHITESPACE16:02
J1mYou can pass flags to DocFileSuite16:02
srichterBut I would like this flag on for the entire TXT file16:02
srichteroh, cool16:02
J1mhttp://docs.python.org/lib/doctest-unittest-api.html16:03
srichterthanks16:04
rejjThere seems to be both a "readme.txt" and a "README.TXT" in src/zope/security/16:05
srichteryou are on windows16:06
rejjwhich does not work under windows16:06
srichterdelete them both and update16:06
rejjsvn update complains16:06
srichterthere is only one16:06
srichterit's just Windows that sucks16:06
rejjit restores readme.txt, and then fails on README16:06
srichterno way, readme.txt is gone16:06
rejjit's restoring it.16:06
srichterwell, then the Windows SVN client sucks16:07
srichterdelete the entire security dir16:07
rejjthat worked16:09
rejjI guess README.TXT must have been added while readme.txt still existed16:10
rejjheh, my first collector submission.16:39
rejjprobably wasn't even worthy of using collector, but I'm not sure what other methods exist16:39
srichterrejj: don't you have checkin rights?16:45
srichterYou should get them :-)16:45
rejjNot unless anon can checkin (which I'm sure is not possible)16:46
srichterright16:46
srichterso why don't you get them, if you plan to hang around for a while?16:46
rejjHmmm... I guess I'm still evaluating. :)16:47
rejjWhen I find myself doing something more substantial than fixing spelling errors, I'll apply for rights16:47
srichterok16:49
srichterspelling fixes are also very important16:49
*** The|uni is now known as theuni17:02
rejjare there any issues in the collector that would be appropriate for someone attempting to learn/get started?17:31
*** mgedmin has quit IRC17:31
*** mgedmin has joined #zope3-dev17:32
rejjIt's hard for me to judge what's involved for most of them presently.17:32
*** J1m has quit IRC18:01
*** theuni has quit IRC18:06
*** tarek_pala has joined #zope3-dev18:32
*** hazmat has joined #zope3-dev18:32
tarek_palawas lower case notation for modules that contains a class was introduced by Zope 3 or it's more likelyto be a change in python code style ?18:34
mgedmintarek_pala, PEP 8 recommends lower case names for modules18:50
mgedminsome older modules in the Python standard library do not follow that convention18:50
mgedminbut all newer ones do18:50
tarek_palamgedmin: ok thx18:52
tarek_palain pep 8 guido make a difference between two cases :18:52
tarek_palalibrary-style modules, that are lower case18:53
tarek_palaand class module, that has the same name as the class18:53
tarek_palain caps18:53
tarek_palain zope 2 those "class modules " are CapsWords18:54
tarek_palanot in Z318:55
tarek_palaso i was wondering if this was specific to zope 318:55
mgedminah, it's been a while since I last read PEP-818:55
mgedminthere was a great namegeddon in zope 318:56
tarek_palawell, that's how i understood it, since i'm french, i'm not sure at all18:56
mgedminpeople decided that there were too many modules and they were nested too deeply18:56
mgedmincode was full of imports like from foo.bar.baz.SomeName.SomeName import SomeName18:56
mgedminso zope 3 sources were restructured to use a flatter module hierarchy18:56
mgedminand dropped the 'one class in one module' rule18:57
mgedminso you could say there are no more "class modules" in zope 318:57
mgedminand if you find a module that contains only one class, it's just a coincidence18:57
mgedminthere simply weren't any other classes/functions that needed to go together18:57
mgedminHTH18:57
tarek_palaok, very interesting18:57
tarek_palathx for this explanatuon mgedmin18:58
rejjWhat's the rule deciding when the classes should be grouped into the same module?18:58
tarek_palaimho, i split thing when module gets too big19:00
tarek_palabut this is a bad rule i guess :)19:00
mgedminthat's the same one I use ;)19:01
mgedminunless classes are clearly unrelated19:01
rejjI would tend to do it based on how tightly coupled the classes are19:01
rejjbut I was just wondering if anything had been formalised for z3 dev somewhere19:02
rejjI don't really like the one-class-in-one-module rule, personally. If I create a (for example) custom container class, that holds custom items (and raises its own exceptions), I'd put the container class, item class, and exceptions in the same module. (assuming it made no sense to define one of those items outside the context of that container)19:03
tarek_palai think the efficiency of how it is organized is told by how messy are the import section19:05
tarek_palazope 3 is a model on this19:05
*** tarek_pala is now known as tarek_away19:06
*** hazmat has quit IRC19:39
*** hazmat has joined #zope3-dev19:49
*** hazmat has quit IRC20:07
*** J1m has joined #zope3-dev20:10
J1msrichter, ayt?20:11
J1mwhimper20:13
*** srichter has quit IRC20:23
*** hazmat has joined #zope3-dev20:46
*** tarek_away has quit IRC20:53
*** juka has joined #zope3-dev20:58
*** juka has left #zope3-dev20:59
*** philiKON has joined #zope3-dev21:01
*** niemeyer has joined #zope3-dev21:01
*** hazmat has quit IRC21:04
*** J1m has quit IRC22:55
*** hazmat has joined #zope3-dev23:27
*** niemeyer has quit IRC23:41
*** projekt01 has joined #zope3-dev23:51
projekt01Workblia, did the fix from last night solve your problem?23:54
*** hazmat has quit IRC23:59

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