IRC log of #zope3-dev for Thursday, 2008-08-14

*** benji has quit IRC00:05
*** whit has quit IRC00:05
*** whit has joined #zope3-dev00:06
*** agroszer has quit IRC00:06
*** whit has quit IRC00:07
*** whit has joined #zope3-dev00:07
*** lucielejard has quit IRC00:10
*** malthe|out is now known as malthe00:21
*** ktwilight has joined #zope3-dev00:24
*** tarek has quit IRC00:25
*** ktwilight_ has quit IRC00:30
*** ignas has quit IRC00:30
*** redir has joined #zope3-dev00:32
*** redir has quit IRC00:39
ccombsetuptools 0.6c8 + subversion 1.5 is a real pain00:40
ccombit's causing me a headache everyday00:41
* ccomb is about to subscribe to distutils-sig just to whine00:44
jamur2ccomb:  http://bugs.python.org/setuptools/issue4 has a patched egg that I use00:47
ccombjamur2 I'm already creating my own 0.6c9 but in a sanbox, there is always something that wants to download 0.6c800:49
*** greenman_ has quit IRC00:49
ccombvirtualenv downloads 0.6c8 by default00:51
ccombthe KGS also forces 0.6c800:51
ccombeven my grandmother wants 0.6c800:52
jamur2heh00:52
*** malthe is now known as malthe|Zzz00:52
jamur2i've got a .buildout/default.cfg so everything uses a common eggs-directory that helps00:53
*** sm has joined #zope3-dev00:55
*** jamur2 has quit IRC00:57
*** vipod has quit IRC01:11
*** dunny has quit IRC01:11
*** oggers has quit IRC01:22
*** fcorrea has quit IRC01:42
*** greenman_ has joined #zope3-dev01:45
*** J1m has quit IRC01:46
*** sp0cksbeard has quit IRC01:47
*** hazmat has joined #zope3-dev01:49
*** ChanServ sets mode: +o hazmat01:49
*** whit is now known as whit|out01:52
*** junkafarian_ has quit IRC01:56
*** fcorrea has joined #zope3-dev02:01
*** b52laptop has quit IRC02:01
*** b52laptop has joined #zope3-dev02:03
*** whit|out has quit IRC02:09
*** lurkymclurkleton has quit IRC02:15
*** aclark is now known as aclark|dinner02:15
*** fcorrea has quit IRC02:20
*** nathany has quit IRC02:29
*** deo has joined #zope3-dev02:46
*** rmarianski has quit IRC02:47
*** nathany has joined #zope3-dev02:47
*** fcorrea has joined #zope3-dev02:57
*** nathany has quit IRC03:07
*** aclark|dinner is now known as aclark03:15
*** flox has left #zope3-dev03:36
*** dunny has joined #zope3-dev03:37
*** lurkymclurkleton has joined #zope3-dev03:38
*** ignas has joined #zope3-dev03:42
*** ignas has quit IRC03:43
*** lurkymclurkleton has quit IRC03:44
*** aclark is now known as aclark|away03:46
*** redir has joined #zope3-dev03:49
*** b52laptop has quit IRC03:52
*** hazmat has quit IRC04:36
*** redir has quit IRC05:05
*** alecm has quit IRC05:08
*** srichter has quit IRC05:13
*** hazmat has joined #zope3-dev05:40
*** ChanServ sets mode: +o hazmat05:40
*** jsadjohnson has quit IRC06:03
*** binseer has joined #zope3-dev06:09
*** sm has quit IRC06:10
*** stub has joined #zope3-dev06:32
*** tdoggette has quit IRC06:38
*** kursor has joined #zope3-dev07:01
*** alecm has joined #zope3-dev07:35
*** philiKON_ has joined #zope3-dev07:45
*** philiKON has quit IRC07:46
*** fairwinds has quit IRC07:53
*** fcorrea_ has joined #zope3-dev08:05
*** fcorrea has quit IRC08:05
*** philiKON_ has quit IRC08:25
*** andres_f has quit IRC08:35
*** fairwinds has joined #zope3-dev08:37
*** sm has joined #zope3-dev08:43
*** alecm has quit IRC08:44
*** quodt has joined #zope3-dev08:48
*** srichter has joined #zope3-dev08:49
*** philiKON has joined #zope3-dev08:53
*** sm has quit IRC08:58
*** __mac__ has joined #zope3-dev09:02
*** afd_ has joined #zope3-dev09:12
*** greenman_ has quit IRC09:12
*** fairwinds has quit IRC09:15
*** __mac___ has joined #zope3-dev09:16
*** baijum has joined #zope3-dev09:25
*** __mac__ has quit IRC09:32
*** BjornT has quit IRC09:36
*** BjornT_ has joined #zope3-dev09:36
*** ChanServ sets mode: +o srichter09:48
*** tarek has joined #zope3-dev09:58
*** jodok has quit IRC10:22
*** mustap has joined #zope3-dev10:27
*** malthe|Zzz is now known as malthe10:29
*** goschtl has joined #zope3-dev10:30
*** MJ has joined #zope3-dev10:34
*** jodok has joined #zope3-dev10:34
*** stub has quit IRC10:38
*** b52laptop has joined #zope3-dev10:40
*** agroszer has joined #zope3-dev10:47
*** junkafarian has joined #zope3-dev10:52
*** maurits has joined #zope3-dev10:54
*** stub has joined #zope3-dev10:57
*** malthe has quit IRC11:05
*** mintsauce has joined #zope3-dev11:10
mintsauceI'm accessing a bunch of objects in a folder, using 'self.context.items()',  then listing them via if 'IName.providedBy(child):' but filtering on owners via 'dc = IZopeDublinCore(child)' , 'creators = dc.creators' etc11:10
mintsauceThis is fine in the short term, but too memory intensive in the long run, as obvously im listing all, then filtering. Is it possible to return a list with only certain owners using 'self.context.items()'? (So 'filtered list', rather than 'list then filter').11:11
junkafarianmintsauce: you could move the filtering logic to a method in a class which extends the base Folder class?11:12
philiKONnah11:13
philiKONno need to modify existing code11:13
philiKONefficient filtering has nothing to do where it's done11:13
philiKONmintsauce: use a generator11:13
philiKONmintsauce: http://paste.plone.org/2318611:15
philiKONnotice the "yield" statement11:15
mintsauceyup ...11:15
mintsauceflicking through my python reference ;)11:16
mintsaucephiliKON: nice - is this the most efficient way? This folder could have 1,000's of objects owned by different people - im still checking (waking?) each for ownership, whether they are used or not.11:20
philiKONyes11:20
* mintsauce is thinking he should perhaps use user folders instead11:20
philiKONthere's little way round that11:20
philiKONif you want a more efficient system, i suggest dedicated indexes11:20
philiKONe.g. a creators index11:21
philiKONthat indexes docs based on their creators11:21
mintsaucephiliKON: i can appreciate that - to check something you have to access it ;)11:21
philiKONthe only advantage of the generator is that it doesn't consume too much memory at the same time.11:22
mintsauceUser folders would help in the long run too wouldn't they? That way i would just be running a python level security check on a lot less objects I could assumed were owned by that user?11:22
mintsauce(although I'd have to modify the folder logic and user creation a fair bit)11:23
junkafarianmintsauce: harder to search/filter that way though11:24
junkafarianie for other comparisons11:25
mintsaucetrue ...11:25
philiKONmintsauce: not sure what you mean by user folders.11:25
junkafarianid go for an index too11:25
philiKONmintsauce: certainly that would be such an index. poor man's version11:25
mintsauceat the moment there is one folder /stuff/objects - the objects are listed and filtered by users11:26
mintsauceif it was stuff/username/objects you would have a lot less objects to filter (you could almost assume they were that users anyway)11:27
philiKONright11:27
philiKONas said, that's one way to cut down the objects to wake up11:27
philiKONin a way the dedicated 'username' container would be a poor man's index11:27
philiKONso if that works for you, why not11:28
mintsaucenot sure it works for me as such - it would mean mixing user logic into the folder logic and all the 'fun' that that might involve ;)11:29
mintsauceHow fast is indexing - if i had a 100,000 users with 50 objects, is it going to give me the same performance improvement that specific user folders would?11:30
philiKONwell, indexing would happen whenever the object changed11:30
*** binseer has quit IRC11:30
philiKONyou're probably wondering about the searching11:30
philiKONthe searching is fast11:31
philiKONbecause you're essentially looking up things in a mapping11:31
philiKONdocs = index[creator]11:31
*** binseer has joined #zope3-dev11:31
philiKON(pseudo code)11:31
philiKONand you get back a list of integers (int ids)11:32
philiKONwhich you then use to wake up the objects you're interested in11:32
mintsauceah .... i see - it is a different method entirely, but i can see that it would be quick11:33
mintsaucephiliKON: you should write a book ;P11:33
philiKONno kiddin11:34
mintsauceThanks for the advice guys, thats made it all a lot clearer.11:34
*** baijum has quit IRC11:36
*** malthe has joined #zope3-dev11:37
*** thruflo has joined #zope3-dev11:37
*** aclark|away is now known as aclark11:45
*** hazmat has quit IRC11:51
*** baijum has joined #zope3-dev11:55
*** elro has joined #zope3-dev12:08
*** junkafarian has quit IRC12:22
*** MJ is now known as MJ|out12:23
*** timte has joined #zope3-dev12:23
*** timte has quit IRC12:30
*** timte has joined #zope3-dev12:31
*** greenman has joined #zope3-dev12:41
*** mintsauce has quit IRC12:50
*** junkafarian has joined #zope3-dev12:57
*** MJ|out is now known as MJ13:07
*** mintsauce has joined #zope3-dev13:12
mintsaucephiliKON: is there a pdf version of your book, for those that own the print version?13:13
*** sunew has joined #zope3-dev13:14
*** projekt01 has joined #zope3-dev13:22
*** mintsauce has quit IRC13:24
*** baijum has left #zope3-dev13:29
*** flox has joined #zope3-dev13:36
*** timte has quit IRC13:38
*** dirceu has joined #zope3-dev13:50
*** dunny has quit IRC13:58
*** alga has joined #zope3-dev14:09
*** dirceu has quit IRC14:16
*** afd_ has quit IRC14:20
*** afd_ has joined #zope3-dev14:29
*** afd__ has joined #zope3-dev14:36
*** afd_ has quit IRC14:36
*** jsadjohnson has joined #zope3-dev14:39
*** sunew has quit IRC14:42
*** afd__ has quit IRC14:44
*** MJ is now known as MJ|lunch14:55
*** ignas has joined #zope3-dev15:07
*** greenman has quit IRC15:11
*** redir has joined #zope3-dev15:12
*** timte has joined #zope3-dev15:20
*** afd__ has joined #zope3-dev15:22
*** fairwinds has joined #zope3-dev15:22
*** Ariel_Calzada has joined #zope3-dev15:22
*** timte has quit IRC15:25
*** mintsauce has joined #zope3-dev15:25
*** Ariel_Calzada has left #zope3-dev15:27
mintsaucehi all - trying to adapt IPrincipal annotations ( as per philiKON 's book) - thought it would just be a matter of adding newvar = MappingProperty('newvar') - but im getting a keyError ....... what am I missing?15:28
lisppaste6mintsauce pasted "Member Annotations" at http://paste.lisp.org/display/6530415:29
*** MJ|lunch is now known as MJ15:31
*** basti_ has joined #zope3-dev15:36
*** basti_ is now known as basti__15:37
thruflohave you already got a ppl adapted with memberinfo in the zodb - i.e.: when their mapping was created, it had fewer keys15:44
thrufloyou may need to force the mapping to be reset / have the new property added to it15:44
*** sunew has joined #zope3-dev15:45
mintsaucethruflo: ahh - yeah I have - how do i do that? is it a database generations thing?15:46
thruflo.15:48
mintsauce..? ;)15:48
lisppaste6thruflo pasted "add if statement for mapping key" at http://paste.lisp.org/display/6530515:49
thruflothere we go15:49
thruflosomething along those lines...?15:49
mintsaucegreat, thanks, ill give it a try  - as an aside, does this mean memberinfo interfaces are different from others? i.e. for other objects I can add as many new fields as I like and it doesnt complain ....15:51
thruflopossibly because the book implementation uses the MappingProperty class15:52
thruflonot sure other adapter code always does15:52
mintsaucethruflo: ok thanks :)15:55
*** mintsauce has quit IRC15:58
*** jamur2 has joined #zope3-dev15:58
*** sunew has quit IRC15:59
*** J1m has joined #zope3-dev16:00
*** redir has quit IRC16:02
*** thruflo_ has joined #zope3-dev16:04
*** Rolando has joined #zope3-dev16:07
*** Rolando has quit IRC16:09
*** junkafarian_ has joined #zope3-dev16:11
*** junkafarian has quit IRC16:13
*** junkafarian_ is now known as junkafarian16:14
*** whit has joined #zope3-dev16:16
*** thruflo_ has quit IRC16:17
*** lucielejard has joined #zope3-dev16:18
*** thruflo has quit IRC16:19
*** lurkymclurkleton has joined #zope3-dev16:25
*** jamur2 has quit IRC16:26
*** jamur2 has joined #zope3-dev16:27
*** sunew has joined #zope3-dev16:30
*** binseer has quit IRC16:31
*** Jell-O-Fishi has joined #zope3-dev16:35
*** junkafarian_ has joined #zope3-dev16:38
*** junkafarian has quit IRC16:40
*** junkafarian_ is now known as junkafarian16:40
*** malthe has quit IRC16:50
* ccomb is having a bad time trying to understand the zope.server test failure after ZODB test16:54
ccombmgedmin had isolated the failure : bin/test -pvc1 -m zope.server -t testSTOR_over -m ZEO -t insane16:55
ccomba trigger is created at import time as a pipe with fd = 1116:56
ccombfor some reason, this trigger is no more available when the test happens16:57
*** b52laptop has quit IRC17:02
*** b52laptop has joined #zope3-dev17:09
*** b52lap has joined #zope3-dev17:09
*** timte has joined #zope3-dev17:43
*** nathany has joined #zope3-dev17:43
*** timte has quit IRC17:44
*** timte has joined #zope3-dev17:44
*** rmarianski has joined #zope3-dev17:44
*** mustap has left #zope3-dev17:49
*** reco has joined #zope3-dev17:50
*** srichter has quit IRC17:51
*** sunew has quit IRC17:53
*** sp0cksbeard has joined #zope3-dev17:59
*** projekt01 has quit IRC18:01
*** philiKON has quit IRC18:04
*** goschtl has quit IRC18:09
*** sm has joined #zope3-dev18:14
*** basti__ has quit IRC18:28
*** philiKON has joined #zope3-dev18:30
*** timte has quit IRC18:35
*** dvschramm has joined #zope3-dev18:37
*** alecm has joined #zope3-dev18:43
ccombThe ZEO test called multiple_storages_invalidation_queue_is_not_insane calls  server.close_server()18:43
*** basti_ has joined #zope3-dev18:43
ccomb# Force the asyncore mainloop to exit by hackery18:46
ccomb# i.e. close every socket in the map.  loop() will return when the map is empty.18:47
ccombahh :)18:54
*** __mac___ has quit IRC18:54
ccombthere is some duplicated code between zope.server and ZEO.zrpc18:54
*** pyqwer has joined #zope3-dev18:54
*** pyqwer has left #zope3-dev18:55
*** afd__ has quit IRC18:58
*** brandon_rhodes has joined #zope3-dev19:00
*** J1m has quit IRC19:02
*** lurkymclurkleton has quit IRC19:06
*** lurkymclurkleton has joined #zope3-dev19:07
*** maurits has quit IRC19:20
*** MJ is now known as MJ|dinner19:24
*** srichter has joined #zope3-dev19:26
*** aclark is now known as aclark|away19:36
*** basti_ has quit IRC19:43
*** quodt has quit IRC19:52
*** b52lap has quit IRC20:04
*** b52lap has joined #zope3-dev20:05
*** junkafarian has quit IRC20:18
*** b52lap has quit IRC20:21
*** alecm has quit IRC20:22
*** MrTopf has joined #zope3-dev20:29
* ccomb reported https://bugs.launchpad.net/zodb/+bug/25795420:29
*** ChanServ sets mode: +o srichter20:29
ccombthis is for   bin/test -pvc1 -m zope.server -t testSTOR_over -m ZEO -t insane20:31
ccombThere is a second problem with  bin/test -pvc1 -m ZEO -t insane --repeat 220:32
*** jodok has quit IRC20:33
*** mcdonc has quit IRC20:38
srichterccomb: are those the final failures in the KGS?20:44
ccombin 32 bits yes20:44
srichtervery cool20:45
ccombIt can be fixed either in ZEO or in zope.server20:45
srichtermmh, ok20:45
ccombIs there a chance we have a release of ZODB 3.8.1 soon ?20:45
srichterccomb: we can ask Jim when he is back20:46
ccombAnyway I'll try to find a way to fix it in zope.server20:46
*** afd__ has joined #zope3-dev20:54
*** mcdonc has joined #zope3-dev20:57
*** ignas has quit IRC20:58
* srichter looks for J1m20:59
*** alecm has joined #zope3-dev21:01
*** MJ|dinner is now known as MJ21:05
*** jodok has joined #zope3-dev21:07
*** sunew has joined #zope3-dev21:07
*** sunew has quit IRC21:07
*** nathany has quit IRC21:15
*** J1m has joined #zope3-dev21:19
*** junkafarian has joined #zope3-dev21:19
*** nathany has joined #zope3-dev21:26
*** J1m has quit IRC21:31
*** J1m has joined #zope3-dev21:36
*** MrTopf has quit IRC21:36
*** J1m has quit IRC21:39
*** elro has quit IRC21:41
*** whit has quit IRC21:42
*** whit has joined #zope3-dev21:43
*** whit has quit IRC21:45
*** whit has joined #zope3-dev21:46
*** stub has quit IRC21:50
*** stub has joined #zope3-dev21:50
*** kursor has quit IRC21:53
*** whit has quit IRC21:53
*** whit has joined #zope3-dev21:54
*** whit has quit IRC21:55
*** whit has joined #zope3-dev21:57
*** aclark|away is now known as aclark21:57
*** stub has quit IRC22:11
*** agroszer_ has joined #zope3-dev22:11
*** agroszer has quit IRC22:13
*** quodt has joined #zope3-dev22:17
*** agroszer_ has quit IRC22:25
*** afd__ has quit IRC22:26
*** alga has quit IRC22:30
*** timte has joined #zope3-dev22:31
ccombsrichter ping22:33
*** vipod has joined #zope3-dev22:33
srichterccomb: pong22:34
*** b52laptop has joined #zope3-dev22:34
ccombI've found a way to prevent failures on zope.server by moving some imports in the setUp22:34
*** b52laptop has quit IRC22:34
ccombI'm running the full kgs test suite to check22:34
srichterccomb: cool22:34
srichterdo you know why th eimport order matters?22:34
ccombthe testrunner imports everything before the tests22:35
srichterah ok22:35
ccombwhile importing zope.server.dualmodechannel, it creates a socket (trigger)22:35
ccombthis socket is closed by the ZEO tests (cf bug report)22:35
srichterahh, good work22:36
ccombI've moved the imports of WSGIHTTPServer, HTTPServer, and others22:36
srichterI see22:36
ccombthe real problem is both in ZEO and zope.server22:37
ccombIf ok I would like to release zope.server 3.4.3 and zope.publisher 3.4.422:37
ccomband zc.zope3recipes22:37
ccomband include them in the KGS, then see if mgedmin's buildbot is happier22:38
srichteryep22:39
srichter+122:39
ccombSo I need the upload permission for these packages on pypi22:39
*** fcorrea_ is now known as fcorrea22:42
*** jsadjohnson has left #zope3-dev22:42
srichterccomb: what is your username for pypi?22:42
ccombccomb22:43
*** MJ has quit IRC23:01
*** tarek has quit IRC23:07
*** greenman has joined #zope3-dev23:14
chaoflowin a FunctionalDocFileSuite from zope.app.testing.functional, I call getRootFolder(): this works fine, if I zcml include zope.app.zcmlfiles in newer zope3. In Zope-2.10.4 there is no zope.app.zcmfiles and getRootFolder() fails with "KeyError: 'Application'". What do I need to include to make it work?23:15
chaoflowhttp://paste.plone.org/2319923:19
*** tarek has joined #zope3-dev23:28
*** alecm has quit IRC23:29
*** dunny has joined #zope3-dev23:34
chaoflowzope.app.appsetup is the answer23:40
*** alecm has joined #zope3-dev23:58

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