*** timte has quit IRC | 00:01 | |
*** svenn has quit IRC | 00:08 | |
*** jukart has joined #zope3-dev | 00:10 | |
*** jukart has quit IRC | 00:15 | |
*** dunny has quit IRC | 00:27 | |
*** jhauser has quit IRC | 00:32 | |
*** ka-jod has quit IRC | 00:35 | |
*** nerdalert has quit IRC | 00:43 | |
*** dobee has joined #zope3-dev | 00:44 | |
*** pcardune has joined #zope3-dev | 00:46 | |
*** oferw has quit IRC | 00:47 | |
*** bigkevmcd has quit IRC | 00:47 | |
*** benji has quit IRC | 00:59 | |
*** greenman has quit IRC | 01:00 | |
*** b52laptop has joined #zope3-dev | 01:07 | |
*** jodok has joined #zope3-dev | 01:10 | |
*** Newfie has joined #zope3-dev | 01:16 | |
*** faassen has quit IRC | 01:25 | |
*** jodok has quit IRC | 01:36 | |
*** alecm has joined #zope3-dev | 01:40 | |
*** yota has quit IRC | 01:45 | |
sm | oh 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-dev | 01:57 | |
*** greenman has joined #zope3-dev | 01:58 | |
*** dobee has quit IRC | 01:59 | |
*** greenman has quit IRC | 02:02 | |
RaFromBRC | sm: are they empty? | 02:10 |
sm | quite possibly | 02:11 |
RaFromBRC | sm: python's evaluation of truth has a tiered set of parameters, __len__ is in there though | 02:11 |
RaFromBRC | often if __len__ evaluates to zero, the object will be considered to be false | 02:12 |
sm | hmm, that could explain it.. if it's been this way all along, I'll be very surprised | 02:13 |
philiKON | well, the reason is that an empty dict is considered false | 02:15 |
philiKON | contianers in zope 3 implement the dict api | 02:15 |
philiKON | hence, they should be false when they're empty | 02:15 |
philiKON | "if obj" is not a very good test anyway | 02:15 |
philiKON | most of the time you probably want to say "if obj is not None" or so | 02:16 |
RaFromBRC | http://docs.python.org/lib/truth.html | 02:16 |
sm | fair enough - so I'm on zope 2 and I'm guessing it has recently picked up this zope 3 behaviour | 02:18 |
*** jinty has joined #zope3-dev | 02:18 | |
sm | otherwise how the heck did I get this far.. | 02:18 |
sm | thanks! | 02:18 |
philiKON | no idea, but "if obj" is lame :) | 02:18 |
* sm thought it was pythonic! | 02:19 | |
alecm | it'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 |
philiKON | maybe for some definition of pythonic | 02:20 |
philiKON | but usually it's asking for trouble | 02:20 |
alecm | it's also slower | 02:20 |
RaFromBRC | sm: z2 behaves that way, too, actually. | 02:21 |
philiKON | i personally would prefer if objects were neither true or false | 02:21 |
RaFromBRC | empty containers evaluate to false | 02:21 |
philiKON | only specific methods / operators could return boolean values | 02:21 |
philiKON | like len() | 02:21 |
philiKON | well, 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 | |
alecm | I've run into numerous bugs in Zope 2 caused by 'if obj:' where obj was a BTreeFolder | 02:22 |
*** RaFromBRC is now known as RaFromBRC|afk | 02:23 | |
alecm | I 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 empty | 02:23 |
*** lurker has quit IRC | 02:30 | |
*** philiKON_ has joined #zope3-dev | 02:52 | |
* Theuni waves good night | 02:53 | |
Theuni | philiKON_: solltest du nicht auch im bett sein? ;) | 02:54 |
*** philiKON has quit IRC | 02:58 | |
*** febb has joined #zope3-dev | 03:09 | |
*** febb has quit IRC | 03:20 | |
*** projekt01 has quit IRC | 03:29 | |
*** RaFromBRC|afk has left #zope3-dev | 03:37 | |
*** alga has quit IRC | 03:37 | |
*** pcardune has quit IRC | 03:59 | |
*** wrobel has quit IRC | 04:04 | |
*** jinty has quit IRC | 04:06 | |
*** niemeyer has quit IRC | 04:33 | |
*** pcardune has joined #zope3-dev | 05:04 | |
*** fdrake has joined #zope3-dev | 05:13 | |
fdrake | Theuni: you there? | 05:13 |
fdrake | Anyone working on pulling out zope.app.homefolder? | 05:14 |
fdrake | (And are we putting things that have never been released as part of Zope 3 back in the tree?) | 05:14 |
fdrake | Ok, I'm gonna pull zope.app.homefolder out now. | 05:17 |
*** stub has joined #zope3-dev | 05:35 | |
*** pbugni has quit IRC | 05:41 | |
fdrake | So, anyone know which egg specifies a dependency on zope.app.interpreter? | 05:55 |
fdrake | --sigh-- | 06:02 |
fdrake | zope.app.pagetemplate requires it, but only for "evaluating inline code", which is very specific to zope.app.pythonpage. | 06:02 |
fdrake | It's only imported if needed. | 06:03 |
fdrake | I propose we remove zope.app.interpreter from the zope.app.pagetemplate dependencies, and create an "extra" for that package that does require it. | 06:03 |
fdrake | zope.app.pythonpage can require that extra. | 06:04 |
fdrake | Since no one's paying attention, I'll presume there are no objections. ;-) | 06:05 |
*** harobed has joined #zope3-dev | 06: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-dev | 06:07 | |
*** stub has quit IRC | 06:35 | |
*** stub has joined #zope3-dev | 06:43 | |
*** fdrake has left #zope3-dev | 07:04 | |
*** sm has quit IRC | 07:17 | |
*** sm has joined #zope3-dev | 07:18 | |
*** baijum has joined #zope3-dev | 07:27 | |
*** whit has quit IRC | 07:37 | |
*** febb has quit IRC | 08:02 | |
*** afd__ has joined #zope3-dev | 08:03 | |
*** jukart has joined #zope3-dev | 08:13 | |
*** jukart has quit IRC | 08:14 | |
*** sorin has joined #zope3-dev | 08:20 | |
*** sorin is now known as sorindregan | 08:20 | |
*** pghoratiu has joined #zope3-dev | 08:26 | |
*** jukart has joined #zope3-dev | 08:28 | |
*** jukart has quit IRC | 08:32 | |
*** harobed has quit IRC | 08:34 | |
*** stub has quit IRC | 08:37 | |
*** dobee has joined #zope3-dev | 08:38 | |
*** jodok has joined #zope3-dev | 08:44 | |
*** harobed has joined #zope3-dev | 08:45 | |
*** jodok has quit IRC | 08:50 | |
*** ghendi has joined #zope3-dev | 08:56 | |
*** jukart has joined #zope3-dev | 09:03 | |
*** pbugni has joined #zope3-dev | 09:07 | |
*** hazmat has joined #zope3-dev | 09:08 | |
*** ChanServ sets mode: +o hazmat | 09:08 | |
*** timte has joined #zope3-dev | 09:08 | |
*** Bhaskar1 has joined #zope3-dev | 09:12 | |
*** wrobel has joined #zope3-dev | 09:16 | |
*** jfroche has joined #zope3-dev | 09:24 | |
*** pelle_ has joined #zope3-dev | 09:34 | |
*** bigkevmcd has joined #zope3-dev | 09:38 | |
*** tarek has left #zope3-dev | 09:41 | |
*** hdima has joined #zope3-dev | 09:43 | |
*** hdima has left #zope3-dev | 09:43 | |
*** hdima has joined #zope3-dev | 09:54 | |
*** BjornT_ has joined #zope3-dev | 09:55 | |
*** jinty has joined #zope3-dev | 09:56 | |
*** hdima has left #zope3-dev | 09:57 | |
*** hdima has joined #zope3-dev | 09:57 | |
*** d2m has joined #zope3-dev | 09:58 | |
*** philiKON_ has quit IRC | 10:00 | |
*** pbugni has quit IRC | 10:02 | |
*** niemeyer has joined #zope3-dev | 10:04 | |
*** greenman has joined #zope3-dev | 10:11 | |
*** deo has joined #zope3-dev | 10:13 | |
*** dunny has joined #zope3-dev | 10:17 | |
*** reco has quit IRC | 10:24 | |
*** goschtl has joined #zope3-dev | 10:25 | |
*** yota has joined #zope3-dev | 10:26 | |
*** jodok has joined #zope3-dev | 10:30 | |
*** svenn has joined #zope3-dev | 10:32 | |
*** pelle_ has quit IRC | 10:33 | |
*** pelle_ has joined #zope3-dev | 10:33 | |
*** pelle_ has quit IRC | 10:36 | |
*** lurker has joined #zope3-dev | 10:37 | |
*** naro has joined #zope3-dev | 10:38 | |
*** alecm has quit IRC | 10:38 | |
*** lzdych has joined #zope3-dev | 10:38 | |
*** stub has joined #zope3-dev | 10:43 | |
*** pelle_ has joined #zope3-dev | 10:45 | |
*** pelle_ has quit IRC | 11:04 | |
*** pelle_ has joined #zope3-dev | 11:04 | |
*** hazmat has quit IRC | 11:04 | |
*** jukart has quit IRC | 11:16 | |
*** lzdych has quit IRC | 11:16 | |
*** hazmat has joined #zope3-dev | 11:18 | |
*** ChanServ sets mode: +o hazmat | 11:18 | |
*** greenman has quit IRC | 11:28 | |
*** yvl has joined #zope3-dev | 11:35 | |
*** hdim1 has joined #zope3-dev | 11:59 | |
*** hdim1 has left #zope3-dev | 12:00 | |
*** afd__ has quit IRC | 12:04 | |
*** hdima has quit IRC | 12:07 | |
*** jodok has quit IRC | 12:10 | |
*** jodok has joined #zope3-dev | 12:11 | |
*** jfroche_ has joined #zope3-dev | 12:15 | |
*** jukart has joined #zope3-dev | 12:22 | |
*** mkerrin has joined #zope3-dev | 12:24 | |
*** jfroche has quit IRC | 12:31 | |
*** stub has quit IRC | 12:37 | |
*** stub has joined #zope3-dev | 12:38 | |
*** pelle_ has quit IRC | 12:42 | |
*** pelle_ has joined #zope3-dev | 12:44 | |
*** jfroche__ has joined #zope3-dev | 12:55 | |
*** Aiste|away has quit IRC | 13:01 | |
*** lurker is now known as lurker|lunch | 13:11 | |
*** jfroche_ has quit IRC | 13:11 | |
*** jfroche_ has joined #zope3-dev | 13:11 | |
*** Bhaskar1 has quit IRC | 13:12 | |
*** b52laptop has quit IRC | 13:18 | |
*** b52laptop has joined #zope3-dev | 13:19 | |
*** dunny has quit IRC | 13:26 | |
*** Aiste|away has joined #zope3-dev | 13:26 | |
*** jfroche__ has quit IRC | 13:27 | |
*** pcardune has quit IRC | 13:37 | |
*** Aiste|away is now known as Aiste | 13:38 | |
*** b52laptop has quit IRC | 13:41 | |
*** lurker|lunch is now known as lurker | 13:41 | |
*** Newfie has quit IRC | 13:43 | |
*** dobee has quit IRC | 13:55 | |
*** Bhaskar1 has joined #zope3-dev | 14:00 | |
*** pelle_ has quit IRC | 14:13 | |
*** pelle_ has joined #zope3-dev | 14:13 | |
*** BjornT_ has quit IRC | 14:17 | |
*** rocky|away is now known as rocky | 14:17 | |
*** afd__ has joined #zope3-dev | 14:18 | |
*** yvl has quit IRC | 14:21 | |
*** Newfie has joined #zope3-dev | 14:27 | |
*** Jell-O-Fishi has quit IRC | 14:29 | |
*** Jell-O-Fishi has joined #zope3-dev | 14:31 | |
*** baijum has quit IRC | 14:37 | |
*** baijum has joined #zope3-dev | 14:38 | |
*** dobee has joined #zope3-dev | 14:42 | |
*** philiKON has joined #zope3-dev | 14:42 | |
*** Bhaskar1 has quit IRC | 14:42 | |
*** ignas has joined #zope3-dev | 14:43 | |
*** svenn has quit IRC | 14:50 | |
*** pelle_ has quit IRC | 14:54 | |
*** pelle_ has joined #zope3-dev | 14:54 | |
*** harobed has quit IRC | 14:56 | |
*** philiKON has quit IRC | 15:03 | |
*** philiKON has joined #zope3-dev | 15:04 | |
*** benji has joined #zope3-dev | 15:10 | |
*** ghendi has quit IRC | 15:15 | |
*** philiKON has joined #zope3-dev | 15:18 | |
*** b52laptop has joined #zope3-dev | 15:25 | |
*** harobed has joined #zope3-dev | 15:34 | |
*** foxmjay_ has joined #zope3-dev | 15:37 | |
*** foxmjay__ has joined #zope3-dev | 15:37 | |
*** foxmjay_ has left #zope3-dev | 15:37 | |
*** foxmjay__ has left #zope3-dev | 15:37 | |
*** foxmjay has joined #zope3-dev | 15:38 | |
*** BjornT_ has joined #zope3-dev | 15:38 | |
foxmjay | holla, i 'm missing the "interface browser " in the ZMI in z3 ? | 15:40 |
Theuni | Is your Zope server in development mode? | 15:44 |
foxmjay | Theuni, yep | 15:45 |
Theuni | hmm | 15:47 |
foxmjay | :d | 15:47 |
d2m | @@introspector.html is used now | 15:48 |
foxmjay | d2m, you mean the interface browser is in @@introspector.html ? | 15:50 |
d2m | i don't know exactly, but i think th einterface vbrowser (as documented) was removed with zope3.2 | 15:51 |
*** danfairs has joined #zope3-dev | 15:53 | |
foxmjay | d2m, ok thanks | 15:55 |
*** alga has joined #zope3-dev | 16:02 | |
Theuni | yay | 16:14 |
Theuni | the 3-hourly scheduler for the buildbot finally works | 16:14 |
*** philiKON has quit IRC | 16:16 | |
benji | yay! | 16:17 |
* benji nominates Theuni as the new buildout "specialist" ;) | 16:17 | |
baijum | Theuni, congrats ! | 16:18 |
baijum | btw, how to view log ? | 16:18 |
Theuni | not yet :) | 16:18 |
Theuni | that's on my todo list | 16:18 |
baijum | ok | 16:21 |
*** mgedmin has joined #zope3-dev | 16:21 | |
baijum | Anyone knows status of wiki.zope.org and foundation.zope.org sites ? | 16:22 |
*** tralala has joined #zope3-dev | 16:28 | |
tralala | where can I find the http authentication code? | 16:28 |
mgedmin | the bit that issues the challenge or the bit that processes the credentials? | 16:31 |
mgedmin | (1) there's a view for the Unauthorized exception | 16:31 |
tralala | I think I found it - httpplugins.py | 16:32 |
mgedmin | (2) the publication has methods for authentication | 16:32 |
tralala | I'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-dev | 16:39 | |
*** stub has quit IRC | 16:41 | |
*** pelle_ has quit IRC | 16:45 | |
*** nerdalert has joined #zope3-dev | 16:47 | |
*** dobee has quit IRC | 16:49 | |
*** Newfie_ has joined #zope3-dev | 16:50 | |
*** philiKON has joined #zope3-dev | 16:50 | |
*** whit has joined #zope3-dev | 16:53 | |
*** romanofski has quit IRC | 16:54 | |
*** dobee has joined #zope3-dev | 16:57 | |
*** Newfie has quit IRC | 16:57 | |
*** Newfie_ is now known as Newfie | 17:00 | |
*** philiKON has quit IRC | 17:03 | |
*** romanofski has joined #zope3-dev | 17:04 | |
*** jfroche__ has joined #zope3-dev | 17:07 | |
*** whit has quit IRC | 17:09 | |
*** RaFromBRC|afk has joined #zope3-dev | 17:09 | |
*** whit has joined #zope3-dev | 17:10 | |
*** tralala has quit IRC | 17:11 | |
*** regebro has joined #zope3-dev | 17:12 | |
regebro | Hmm. I'm using testbrowser, and like to verify that some specific HTML exists in the output. | 17:17 |
regebro | But 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 |
regebro | With the right amont of spaces and nwlines in the right place and so on. | 17:18 |
regebro | Anybody have any good hints on the best method to do that? | 17:18 |
lurker | set the NORMALIZE_WHITESPACE optionflag, regebro | 17:18 |
benji | does the doctest NORMALIZE_WHITESPACE flag not work for you? | 17:18 |
regebro | doctests suck. | 17:19 |
benji | despite your skewed worldview, you could normalize the whitespace yourself ;) | 17:19 |
regebro | So, no it doesn't work, because I don't do doctests, unless I want to actually do documentation, and test it. :) | 17:19 |
Theuni | well | 17:20 |
benji | perhaps using an HTML prettifyer | 17:20 |
regebro | Yeah, I can, but I thought there might be like a nice and easy function that does it for me. | 17:20 |
Theuni | regebro: if you're interested in the structure you can also think about using the etestbrowser | 17:20 |
regebro | benji: Right, somthing like that could work. | 17:20 |
regebro | Theuni: etestbrowser? | 17:20 |
Theuni | z3c.etestbrowser | 17:21 |
benji | yep, perhaps XPath and friends would suite your use case better | 17:21 |
Theuni | an extension | 17:21 |
Theuni | it gives you the ability to access the current document through xpath or an elementtree | 17:21 |
regebro | OK, found it. | 17:21 |
regebro | This is Five, so it probably won't work, but maybe I can steal some code. :-) | 17:21 |
regebro | OK, that's simple enough, just parse it with lxml. I though about that too. | 17:23 |
*** jfroche_ has quit IRC | 17:23 | |
regebro | I'll probably just make a function that parses both trees and makes sure tree2 exists in tree1. :-) | 17:23 |
Theuni | :) | 17:25 |
*** baijum has quit IRC | 17:29 | |
*** danfairs has quit IRC | 17:30 | |
*** pghoratiu has left #zope3-dev | 17:34 | |
*** goschtl has quit IRC | 17:37 | |
*** baijum has joined #zope3-dev | 17:39 | |
*** jfroche__ has quit IRC | 17:43 | |
*** alecm has joined #zope3-dev | 17:44 | |
*** philiKON has joined #zope3-dev | 17:48 | |
*** lisppaste6 has quit IRC | 17:49 | |
*** rupert has joined #zope3-dev | 17:50 | |
rupert | Hi! | 17:52 |
*** dobee has quit IRC | 17:58 | |
*** lisppaste6 has joined #zope3-dev | 17:58 | |
*** rocky is now known as rocky|away | 18:03 | |
*** bigkevmcd has quit IRC | 18:03 | |
*** bigkevmcd has joined #zope3-dev | 18:03 | |
*** baijum has quit IRC | 18:09 | |
*** pcardune has joined #zope3-dev | 18:12 | |
*** jbb666 has joined #zope3-dev | 18:15 | |
*** rocky|away is now known as rocky | 18:16 | |
*** jukart has quit IRC | 18:30 | |
*** harobed has quit IRC | 18:36 | |
*** jodok has quit IRC | 18:41 | |
*** Aiste has quit IRC | 18:43 | |
*** timte has quit IRC | 18:44 | |
*** zagy has joined #zope3-dev | 18:47 | |
*** timte has joined #zope3-dev | 18:58 | |
*** ignas has quit IRC | 19:09 | |
*** yota has quit IRC | 19:21 | |
*** regebro is now known as regebro|walk | 19:26 | |
*** povbot has joined #zope3-dev | 19:31 | |
*** yota has joined #zope3-dev | 19:32 | |
*** jbb666 has quit IRC | 19:34 | |
*** lurker has quit IRC | 19:35 | |
*** povbot` has quit IRC | 19:45 | |
*** lurker has joined #zope3-dev | 19:57 | |
CrippsFX | has anyone written a package that uses multiple doctest files? | 19:59 |
CrippsFX | I'm trying to figure out a way to run multiple doctest files, to make reading to documentation easier for the user. | 20:00 |
benji | CrippsFX: here's an example: http://svn.zope.org/zope.testbrowser/trunk/src/zope/testbrowser/tests.py?rev=75590&view=markup | 20:00 |
CrippsFX | thanks benji | 20:00 |
benji | there are many others in that repo | 20:01 |
benji | np | 20:01 |
CrippsFX | ooh. looks complex. this might take me a few minutes to dig through :P | 20:02 |
benji | it's pretty simple, just look at test_suite; a few doctests are created and added to a TestSuite which is returned | 20:03 |
*** henri_ has joined #zope3-dev | 20:07 | |
CrippsFX | ah, I see. | 20:09 |
*** deo has quit IRC | 20:16 | |
*** henri_ has left #zope3-dev | 20:16 | |
*** regebro|walk is now known as regebro | 20:17 | |
*** sorindregan has quit IRC | 20:17 | |
xbeanx | does zc.datetimewidget work in zope 3? | 20:19 |
*** meatballhat has joined #zope3-dev | 20:24 | |
*** lurker has quit IRC | 20:29 | |
alecm | xbeanx: afaik that's the only place it does work :-) | 20:34 |
xbeanx | sweetness | 20:37 |
xbeanx | thanks | 20:37 |
*** dobee has joined #zope3-dev | 20:41 | |
benji | yeah, zc.datetimewidget is for Z3 (might be able to use it with Five, but I don't know) | 20:42 |
xbeanx | Naw I'm not interested in Z2 right now, just Z3 stuff. | 20:58 |
*** jhauser has joined #zope3-dev | 20:59 | |
*** dunny has joined #zope3-dev | 21:00 | |
*** RaFromBRC|afk is now known as RaFromBRC | 21:02 | |
*** dobee has quit IRC | 21:08 | |
*** b52laptop has quit IRC | 21:16 | |
*** jukart has joined #zope3-dev | 21:20 | |
*** xbeanx has quit IRC | 21:26 | |
*** afd__ has quit IRC | 21:31 | |
*** whit has quit IRC | 21:32 | |
*** BjornT_ has quit IRC | 21:34 | |
*** whit has joined #zope3-dev | 21:41 | |
*** mgedmin has quit IRC | 21:43 | |
*** jodok has joined #zope3-dev | 21:53 | |
*** pelle_ has joined #zope3-dev | 21:54 | |
*** alga has quit IRC | 22:10 | |
*** mkerrin has quit IRC | 22:10 | |
*** naro has quit IRC | 22:14 | |
*** rupert has quit IRC | 22:15 | |
*** pcardune has quit IRC | 22:20 | |
*** romanofski has quit IRC | 22:21 | |
*** b52laptop has joined #zope3-dev | 22:27 | |
*** mkerrin has joined #zope3-dev | 22:29 | |
*** zenwryly has joined #zope3-dev | 22:32 | |
* timte has trouble deciding wether this logic belongs to the adapter or the utility | 22:42 | |
*** pelle_ has joined #zope3-dev | 22:46 | |
*** Newfie has quit IRC | 22:47 | |
*** greenman has joined #zope3-dev | 22:51 | |
*** b52laptop has quit IRC | 22:53 | |
*** b52laptop has joined #zope3-dev | 22:53 | |
*** d2m has left #zope3-dev | 23:06 | |
*** pcardune has joined #zope3-dev | 23:14 | |
*** jukart has quit IRC | 23:15 | |
*** greenman has quit IRC | 23:16 | |
*** mkerrin has quit IRC | 23:26 | |
*** hazmat has quit IRC | 23:44 | |
*** jhauser_ has joined #zope3-dev | 23:51 | |
*** jhauser has quit IRC | 23:59 | |
*** ktwilight has joined #zope3-dev | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!