IRC log of #zope3-dev for Tuesday, 2007-05-08

*** timte has quit IRC00:01
*** svenn has quit IRC00:08
*** jukart has joined #zope3-dev00:10
*** jukart has quit IRC00:15
*** dunny has quit IRC00:27
*** jhauser has quit IRC00:32
*** ka-jod has quit IRC00:35
*** nerdalert has quit IRC00:43
*** dobee has joined #zope3-dev00:44
*** pcardune has joined #zope3-dev00:46
*** oferw has quit IRC00:47
*** bigkevmcd has quit IRC00:47
*** benji has quit IRC00:59
*** greenman has quit IRC01:00
*** b52laptop has joined #zope3-dev01:07
*** jodok has joined #zope3-dev01:10
*** Newfie has joined #zope3-dev01:16
*** faassen has quit IRC01:25
*** jodok has quit IRC01:36
*** alecm has joined #zope3-dev01:40
*** yota has quit IRC01:45
smoh zope wizards.. why might I be seeing some instances (eg a zcatalog or btreefolder) being treated as boolean false  ?01:53
*** romanofski has joined #zope3-dev01:57
*** greenman has joined #zope3-dev01:58
*** dobee has quit IRC01:59
*** greenman has quit IRC02:02
RaFromBRCsm: are they empty?02:10
smquite possibly02:11
RaFromBRCsm: python's evaluation of truth has a tiered set of parameters, __len__ is in there though02:11
RaFromBRCoften if __len__ evaluates to zero, the object will be considered to be false02:12
smhmm, that could explain it.. if it's been this way all along, I'll be very surprised02:13
philiKONwell, the reason is that an empty dict is considered false02:15
philiKONcontianers in zope 3 implement the dict api02:15
philiKONhence, they should be false when they're empty02:15
philiKON"if obj" is not a very good test anyway02:15
philiKONmost of the time you probably want to say "if obj is not None" or so02:16
smfair enough - so I'm on zope 2 and I'm guessing it has recently picked up this zope 3 behaviour02:18
*** jinty has joined #zope3-dev02:18
smotherwise how the heck did I get this far..02:18
philiKONno idea, but "if obj" is lame :)02:18
* sm thought it was pythonic!02:19
alecmit's great if you want to test for zero length containers (like BTreeFolders etc.), but it's a bad idea if what you really mean is 'is None'02:20
philiKONmaybe for some definition of pythonic02:20
philiKONbut usually it's asking for trouble02:20
alecmit's also slower02:20
RaFromBRCsm: z2 behaves that way, too, actually.02:21
philiKONi personally would prefer if objects were neither true or false02:21
RaFromBRCempty containers evaluate to false02:21
philiKONonly specific methods / operators could return boolean values02:21
philiKONlike len()02:21
philiKONwell, that doesn't even return a bool :)02:22
* philiKON wonders if he too should start a "5 things i hate about python"02:22
alecmI've run into numerous bugs in Zope 2 caused by 'if obj:' where obj was a BTreeFolder02:22
*** RaFromBRC is now known as RaFromBRC|afk02:23
alecmI think 'if obj' is a good idea in a zope 3 world when you know you are dealing with some sort of container/mapping/sequence, but you know nothing about its implementation but want to test whether it is empty02:23
*** lurker has quit IRC02:30
*** philiKON_ has joined #zope3-dev02:52
* Theuni waves good night02:53
TheuniphiliKON_: solltest du nicht  auch im bett sein? ;)02:54
*** philiKON has quit IRC02:58
*** febb has joined #zope3-dev03:09
*** febb has quit IRC03:20
*** projekt01 has quit IRC03:29
*** RaFromBRC|afk has left #zope3-dev03:37
*** alga has quit IRC03:37
*** pcardune has quit IRC03:59
*** wrobel has quit IRC04:04
*** jinty has quit IRC04:06
*** niemeyer has quit IRC04:33
*** pcardune has joined #zope3-dev05:04
*** fdrake has joined #zope3-dev05:13
fdrakeTheuni: you there?05:13
fdrakeAnyone working on pulling out
fdrake(And are we putting things that have never been released as part of Zope 3 back in the tree?)05:14
fdrakeOk, I'm gonna pull out now.05:17
*** stub has joined #zope3-dev05:35
*** pbugni has quit IRC05:41
fdrakeSo, anyone know which egg specifies a dependency on
fdrake--sigh--06:02 requires it, but only for "evaluating inline code", which is very specific to
fdrakeIt's only imported if needed.06:03
fdrakeI propose we remove from the dependencies, and create an "extra" for that package that does require it.06:03 can require that extra.06:04
fdrakeSince no one's paying attention, I'll presume there are no objections.  ;-)06:05
*** harobed has joined #zope3-dev06:05
fdrake(Or can z.a.pythonpage and the support from z.a.pagetemplate just go away?  No one can reasonably be using it.)06:05
*** febb has joined #zope3-dev06:07
*** stub has quit IRC06:35
*** stub has joined #zope3-dev06:43
*** fdrake has left #zope3-dev07:04
*** sm has quit IRC07:17
*** sm has joined #zope3-dev07:18
*** baijum has joined #zope3-dev07:27
*** whit has quit IRC07:37
*** febb has quit IRC08:02
*** afd__ has joined #zope3-dev08:03
*** jukart has joined #zope3-dev08:13
*** jukart has quit IRC08:14
*** sorin has joined #zope3-dev08:20
*** sorin is now known as sorindregan08:20
*** pghoratiu has joined #zope3-dev08:26
*** jukart has joined #zope3-dev08:28
*** jukart has quit IRC08:32
*** harobed has quit IRC08:34
*** stub has quit IRC08:37
*** dobee has joined #zope3-dev08:38
*** jodok has joined #zope3-dev08:44
*** harobed has joined #zope3-dev08:45
*** jodok has quit IRC08:50
*** ghendi has joined #zope3-dev08:56
*** jukart has joined #zope3-dev09:03
*** pbugni has joined #zope3-dev09:07
*** hazmat has joined #zope3-dev09:08
*** ChanServ sets mode: +o hazmat09:08
*** timte has joined #zope3-dev09:08
*** Bhaskar1 has joined #zope3-dev09:12
*** wrobel has joined #zope3-dev09:16
*** jfroche has joined #zope3-dev09:24
*** pelle_ has joined #zope3-dev09:34
*** bigkevmcd has joined #zope3-dev09:38
*** tarek has left #zope3-dev09:41
*** hdima has joined #zope3-dev09:43
*** hdima has left #zope3-dev09:43
*** hdima has joined #zope3-dev09:54
*** BjornT_ has joined #zope3-dev09:55
*** jinty has joined #zope3-dev09:56
*** hdima has left #zope3-dev09:57
*** hdima has joined #zope3-dev09:57
*** d2m has joined #zope3-dev09:58
*** philiKON_ has quit IRC10:00
*** pbugni has quit IRC10:02
*** niemeyer has joined #zope3-dev10:04
*** greenman has joined #zope3-dev10:11
*** deo has joined #zope3-dev10:13
*** dunny has joined #zope3-dev10:17
*** reco has quit IRC10:24
*** goschtl has joined #zope3-dev10:25
*** yota has joined #zope3-dev10:26
*** jodok has joined #zope3-dev10:30
*** svenn has joined #zope3-dev10:32
*** pelle_ has quit IRC10:33
*** pelle_ has joined #zope3-dev10:33
*** pelle_ has quit IRC10:36
*** lurker has joined #zope3-dev10:37
*** naro has joined #zope3-dev10:38
*** alecm has quit IRC10:38
*** lzdych has joined #zope3-dev10:38
*** stub has joined #zope3-dev10:43
*** pelle_ has joined #zope3-dev10:45
*** pelle_ has quit IRC11:04
*** pelle_ has joined #zope3-dev11:04
*** hazmat has quit IRC11:04
*** jukart has quit IRC11:16
*** lzdych has quit IRC11:16
*** hazmat has joined #zope3-dev11:18
*** ChanServ sets mode: +o hazmat11:18
*** greenman has quit IRC11:28
*** yvl has joined #zope3-dev11:35
*** hdim1 has joined #zope3-dev11:59
*** hdim1 has left #zope3-dev12:00
*** afd__ has quit IRC12:04
*** hdima has quit IRC12:07
*** jodok has quit IRC12:10
*** jodok has joined #zope3-dev12:11
*** jfroche_ has joined #zope3-dev12:15
*** jukart has joined #zope3-dev12:22
*** mkerrin has joined #zope3-dev12:24
*** jfroche has quit IRC12:31
*** stub has quit IRC12:37
*** stub has joined #zope3-dev12:38
*** pelle_ has quit IRC12:42
*** pelle_ has joined #zope3-dev12:44
*** jfroche__ has joined #zope3-dev12:55
*** Aiste|away has quit IRC13:01
*** lurker is now known as lurker|lunch13:11
*** jfroche_ has quit IRC13:11
*** jfroche_ has joined #zope3-dev13:11
*** Bhaskar1 has quit IRC13:12
*** b52laptop has quit IRC13:18
*** b52laptop has joined #zope3-dev13:19
*** dunny has quit IRC13:26
*** Aiste|away has joined #zope3-dev13:26
*** jfroche__ has quit IRC13:27
*** pcardune has quit IRC13:37
*** Aiste|away is now known as Aiste13:38
*** b52laptop has quit IRC13:41
*** lurker|lunch is now known as lurker13:41
*** Newfie has quit IRC13:43
*** dobee has quit IRC13:55
*** Bhaskar1 has joined #zope3-dev14:00
*** pelle_ has quit IRC14:13
*** pelle_ has joined #zope3-dev14:13
*** BjornT_ has quit IRC14:17
*** rocky|away is now known as rocky14:17
*** afd__ has joined #zope3-dev14:18
*** yvl has quit IRC14:21
*** Newfie has joined #zope3-dev14:27
*** Jell-O-Fishi has quit IRC14:29
*** Jell-O-Fishi has joined #zope3-dev14:31
*** baijum has quit IRC14:37
*** baijum has joined #zope3-dev14:38
*** dobee has joined #zope3-dev14:42
*** philiKON has joined #zope3-dev14:42
*** Bhaskar1 has quit IRC14:42
*** ignas has joined #zope3-dev14:43
*** svenn has quit IRC14:50
*** pelle_ has quit IRC14:54
*** pelle_ has joined #zope3-dev14:54
*** harobed has quit IRC14:56
*** philiKON has quit IRC15:03
*** philiKON has joined #zope3-dev15:04
*** benji has joined #zope3-dev15:10
*** ghendi has quit IRC15:15
*** philiKON has joined #zope3-dev15:18
*** b52laptop has joined #zope3-dev15:25
*** harobed has joined #zope3-dev15:34
*** foxmjay_ has joined #zope3-dev15:37
*** foxmjay__ has joined #zope3-dev15:37
*** foxmjay_ has left #zope3-dev15:37
*** foxmjay__ has left #zope3-dev15:37
*** foxmjay has joined #zope3-dev15:38
*** BjornT_ has joined #zope3-dev15:38
foxmjayholla, i 'm missing the "interface browser " in the ZMI in z3 ?15:40
TheuniIs your Zope server in development mode?15:44
foxmjayTheuni, yep15:45
d2m@@introspector.html is used now15:48
foxmjayd2m,  you mean the interface browser is in @@introspector.html ?15:50
d2mi don't know exactly, but i think th einterface vbrowser (as documented) was removed with zope3.215:51
*** danfairs has joined #zope3-dev15:53
foxmjayd2m, ok thanks15:55
*** alga has joined #zope3-dev16:02
Theunithe 3-hourly scheduler for the buildbot finally works16:14
*** philiKON has quit IRC16:16
* benji nominates Theuni as the new buildout "specialist" ;)16:17
baijumTheuni, congrats !16:18
baijumbtw, how to view log ?16:18
Theuninot yet :)16:18
Theunithat's on my todo list16:18
*** mgedmin has joined #zope3-dev16:21
baijumAnyone knows status of and sites ?16:22
*** tralala has joined #zope3-dev16:28
tralalawhere can I find the http authentication code?16:28
mgedminthe bit that issues the challenge or the bit that processes the credentials?16:31
mgedmin(1) there's a view for the Unauthorized exception16:31
tralalaI think I found it - httpplugins.py16:32
mgedmin(2) the publication has methods for authentication16:32
tralalaI'm after digest auth. It seems that there's nothing ready so I guess I'd have to create it myself.16:33
*** avoine has joined #zope3-dev16:39
*** stub has quit IRC16:41
*** pelle_ has quit IRC16:45
*** nerdalert has joined #zope3-dev16:47
*** dobee has quit IRC16:49
*** Newfie_ has joined #zope3-dev16:50
*** philiKON has joined #zope3-dev16:50
*** whit has joined #zope3-dev16:53
*** romanofski has quit IRC16:54
*** dobee has joined #zope3-dev16:57
*** Newfie has quit IRC16:57
*** Newfie_ is now known as Newfie17:00
*** philiKON has quit IRC17:03
*** romanofski has joined #zope3-dev17:04
*** jfroche__ has joined #zope3-dev17:07
*** whit has quit IRC17:09
*** RaFromBRC|afk has joined #zope3-dev17:09
*** whit has joined #zope3-dev17:10
*** tralala has quit IRC17:11
*** regebro has joined #zope3-dev17:12
regebroHmm. I'm using testbrowser, and like to verify that some specific HTML exists in the output.17:17
regebroBut I'd prefer if whitespace makes no difference, and such, so that I don't have to format the test text EXACTLY as the output.17:17
regebroWith the right amont of spaces and nwlines in the right place and so on.17:18
regebroAnybody have any good hints on the best method to do that?17:18
lurkerset the NORMALIZE_WHITESPACE optionflag, regebro17:18
benjidoes the doctest NORMALIZE_WHITESPACE flag not work for you?17:18
regebrodoctests suck.17:19
benjidespite your skewed worldview, you could normalize the whitespace yourself ;)17:19
regebroSo, no it doesn't work, because I don't do doctests, unless I want to actually do documentation, and test it. :)17:19
benjiperhaps using an HTML prettifyer17:20
regebroYeah, I can, but I thought there might be like a nice and easy function that does it for me.17:20
Theuniregebro: if you're interested in the structure you can also think about using the etestbrowser17:20
regebrobenji: Right, somthing like that could work.17:20
regebroTheuni: etestbrowser?17:20
benjiyep, perhaps XPath and friends would suite your use case better17:21
Theunian extension17:21
Theuniit gives you the ability to access the current document through xpath or an elementtree17:21
regebroOK, found it.17:21
regebroThis is Five, so it probably won't work, but maybe I can steal some code. :-)17:21
regebroOK, that's simple enough, just parse it with lxml. I though about that too.17:23
*** jfroche_ has quit IRC17:23
regebroI'll probably just make a function that parses both trees and makes sure tree2 exists in tree1. :-)17:23
*** baijum has quit IRC17:29
*** danfairs has quit IRC17:30
*** pghoratiu has left #zope3-dev17:34
*** goschtl has quit IRC17:37
*** baijum has joined #zope3-dev17:39
*** jfroche__ has quit IRC17:43
*** alecm has joined #zope3-dev17:44
*** philiKON has joined #zope3-dev17:48
*** lisppaste6 has quit IRC17:49
*** rupert has joined #zope3-dev17:50
*** dobee has quit IRC17:58
*** lisppaste6 has joined #zope3-dev17:58
*** rocky is now known as rocky|away18:03
*** bigkevmcd has quit IRC18:03
*** bigkevmcd has joined #zope3-dev18:03
*** baijum has quit IRC18:09
*** pcardune has joined #zope3-dev18:12
*** jbb666 has joined #zope3-dev18:15
*** rocky|away is now known as rocky18:16
*** jukart has quit IRC18:30
*** harobed has quit IRC18:36
*** jodok has quit IRC18:41
*** Aiste has quit IRC18:43
*** timte has quit IRC18:44
*** zagy has joined #zope3-dev18:47
*** timte has joined #zope3-dev18:58
*** ignas has quit IRC19:09
*** yota has quit IRC19:21
*** regebro is now known as regebro|walk19:26
*** povbot has joined #zope3-dev19:31
*** yota has joined #zope3-dev19:32
*** jbb666 has quit IRC19:34
*** lurker has quit IRC19:35
*** povbot` has quit IRC19:45
*** lurker has joined #zope3-dev19:57
CrippsFXhas anyone written a package that uses multiple doctest files?19:59
CrippsFXI'm trying to figure out a way to run multiple doctest files, to make reading to documentation easier for the user.20:00
benjiCrippsFX: here's an example:
CrippsFXthanks benji20:00
benjithere are many others in that repo20:01
CrippsFXooh. looks complex. this might take me a few minutes to dig through :P20:02
benjiit's pretty simple, just look at test_suite; a few doctests are created and added to a TestSuite which is returned20:03
*** henri_ has joined #zope3-dev20:07
CrippsFXah, I see.20:09
*** deo has quit IRC20:16
*** henri_ has left #zope3-dev20:16
*** regebro|walk is now known as regebro20:17
*** sorindregan has quit IRC20:17
xbeanxdoes zc.datetimewidget work in zope 3?20:19
*** meatballhat has joined #zope3-dev20:24
*** lurker has quit IRC20:29
alecmxbeanx: afaik that's the only place it does work :-)20:34
*** dobee has joined #zope3-dev20:41
benjiyeah, zc.datetimewidget is for Z3 (might be able to use it with Five, but I don't know)20:42
xbeanxNaw I'm not interested in Z2 right now, just Z3 stuff.20:58
*** jhauser has joined #zope3-dev20:59
*** dunny has joined #zope3-dev21:00
*** RaFromBRC|afk is now known as RaFromBRC21:02
*** dobee has quit IRC21:08
*** b52laptop has quit IRC21:16
*** jukart has joined #zope3-dev21:20
*** xbeanx has quit IRC21:26
*** afd__ has quit IRC21:31
*** whit has quit IRC21:32
*** BjornT_ has quit IRC21:34
*** whit has joined #zope3-dev21:41
*** mgedmin has quit IRC21:43
*** jodok has joined #zope3-dev21:53
*** pelle_ has joined #zope3-dev21:54
*** alga has quit IRC22:10
*** mkerrin has quit IRC22:10
*** naro has quit IRC22:14
*** rupert has quit IRC22:15
*** pcardune has quit IRC22:20
*** romanofski has quit IRC22:21
*** b52laptop has joined #zope3-dev22:27
*** mkerrin has joined #zope3-dev22:29
*** zenwryly has joined #zope3-dev22:32
* timte has trouble deciding wether this logic belongs to the adapter or the utility22:42
*** pelle_ has joined #zope3-dev22:46
*** Newfie has quit IRC22:47
*** greenman has joined #zope3-dev22:51
*** b52laptop has quit IRC22:53
*** b52laptop has joined #zope3-dev22:53
*** d2m has left #zope3-dev23:06
*** pcardune has joined #zope3-dev23:14
*** jukart has quit IRC23:15
*** greenman has quit IRC23:16
*** mkerrin has quit IRC23:26
*** hazmat has quit IRC23:44
*** jhauser_ has joined #zope3-dev23:51
*** jhauser has quit IRC23:59
*** ktwilight has joined #zope3-dev23:59

Generated by 2.15.1 by Marius Gedminas - find it at!