IRC log of #zope3-dev for Tuesday, 2007-04-10

*** d2m has quit IRC00:03
*** tarek has joined #zope3-dev00:07
*** tarek has quit IRC00:11
*** pcardune_mac has quit IRC00:20
*** pcardune has quit IRC00:21
*** tarek has joined #zope3-dev00:23
*** marcin_ant has joined #zope3-dev00:28
*** stub has quit IRC00:32
*** redir has quit IRC00:36
*** __cbcunc__ has quit IRC00:39
*** jodok has quit IRC00:43
*** MrTopf has joined #zope3-dev00:46
*** dobee has joined #zope3-dev00:50
*** timte has quit IRC00:51
*** lurker has quit IRC00:54
*** bigkevmcd has quit IRC01:03
*** danfairs has joined #zope3-dev01:04
*** dobee has quit IRC01:08
*** yota has quit IRC01:17
*** harobed_ has quit IRC01:22
*** tarek has quit IRC01:24
*** dunny has quit IRC01:31
*** danfairs has quit IRC01:33
*** dunny has joined #zope3-dev01:41
*** tarek has joined #zope3-dev01:44
*** tarek has quit IRC01:47
*** benji has quit IRC01:49
*** dunny_ has joined #zope3-dev02:00
*** pbugni has quit IRC02:00
*** dunny has quit IRC02:09
*** J1m has quit IRC02:10
*** MrTopf has quit IRC02:29
*** redir has joined #zope3-dev02:56
*** marcin_ant has quit IRC03:01
*** TresEquis has quit IRC03:02
*** rlo has joined #zope3-dev03:08
*** b52laptop has joined #zope3-dev03:08
*** pcardune_mac has joined #zope3-dev03:11
*** jkakar has quit IRC03:12
*** pcardune has joined #zope3-dev03:14
*** redir has quit IRC03:15
*** redir has joined #zope3-dev03:15
*** rlo has quit IRC03:18
*** wrobel has quit IRC03:23
*** redir has quit IRC03:24
*** b52lap has quit IRC03:25
*** redir has joined #zope3-dev03:25
*** dunny_ is now known as dunny03:36
*** rlo has joined #zope3-dev03:39
*** RaFromBRC|away has quit IRC03:54
*** redir has quit IRC03:55
*** redir has joined #zope3-dev03:55
*** rlo has quit IRC04:01
*** rlo has joined #zope3-dev04:01
*** rlo has quit IRC04:19
*** rlo has joined #zope3-dev04:28
*** jinty has quit IRC04:38
*** whit has quit IRC04:53
*** rlo has quit IRC04:57
*** rlo has joined #zope3-dev05:03
*** natea has quit IRC05:09
*** natea has joined #zope3-dev05:09
*** redir has quit IRC05:10
*** rlo has quit IRC05:15
*** redir has joined #zope3-dev05:15
*** redir has quit IRC05:24
*** redir has joined #zope3-dev05:24
*** redir has joined #zope3-dev05:25
*** redir has quit IRC05:31
*** redir has joined #zope3-dev05:32
*** redir has quit IRC05:35
*** redir has joined #zope3-dev05:44
*** niemeyer has quit IRC05:46
*** rlo has joined #zope3-dev05:47
*** baijum has joined #zope3-dev05:52
*** rlo has quit IRC05:53
*** natea_ has joined #zope3-dev05:54
*** redir has quit IRC05:55
*** natea has quit IRC06:00
*** redir has joined #zope3-dev06:04
*** redir has quit IRC06:06
*** ktwilight has joined #zope3-dev06:10
*** redir has joined #zope3-dev06:15
*** redir has quit IRC06:22
*** redir has joined #zope3-dev06:22
*** ktwilight_ has quit IRC06:24
*** redir has quit IRC06:26
*** stub has joined #zope3-dev06:34
*** pcardune has quit IRC06:34
*** redir has joined #zope3-dev06:35
*** Bhaskar has joined #zope3-dev06:50
*** redir has quit IRC06:55
*** redir has joined #zope3-dev07:04
*** rlo has joined #zope3-dev07:21
*** redir has quit IRC07:25
*** yota has joined #zope3-dev07:36
*** rlo has quit IRC07:43
*** afd_ has joined #zope3-dev07:45
*** Jell-O-Fishi has quit IRC07:51
*** natea has joined #zope3-dev07:59
*** jkakar has joined #zope3-dev08:03
*** natea_ has quit IRC08:07
*** sorin has joined #zope3-dev08:15
*** sorin is now known as sorindregan08:15
*** alecm has quit IRC08:21
*** afd_ has quit IRC08:27
*** pghoratiu has joined #zope3-dev08:28
*** jukart has joined #zope3-dev08:39
*** jkakar has quit IRC08:49
*** danfairs has joined #zope3-dev09:01
*** stub has quit IRC09:06
*** lzdych has joined #zope3-dev09:09
*** naro has joined #zope3-dev09:09
*** danfairs has quit IRC09:10
*** d2m has joined #zope3-dev09:15
*** dlk has joined #zope3-dev09:24
*** wrobel has joined #zope3-dev09:24
*** pcardune_mac has quit IRC09:25
*** zagy has joined #zope3-dev09:25
*** timte has joined #zope3-dev09:28
*** ghendi has joined #zope3-dev09:35
*** Aiste has joined #zope3-dev09:50
*** Aiste has quit IRC09:51
*** romanofski has joined #zope3-dev09:52
*** dobee has joined #zope3-dev09:53
*** Bhaskar has quit IRC09:53
*** philiKON has quit IRC10:01
*** natea_ has joined #zope3-dev10:05
*** natea has quit IRC10:06
*** pelle_ has joined #zope3-dev10:08
*** tarek has joined #zope3-dev10:08
*** harobed has joined #zope3-dev10:09
*** Bhaskar has joined #zope3-dev10:09
*** dunny has quit IRC10:09
*** dunny has joined #zope3-dev10:17
*** lurker has joined #zope3-dev10:27
*** goschtl has joined #zope3-dev10:31
*** natea has joined #zope3-dev10:41
*** natea_ has quit IRC10:53
*** pelle_ has quit IRC10:53
*** jfroche has joined #zope3-dev11:00
*** jodok has joined #zope3-dev11:10
*** ignas has joined #zope3-dev11:12
*** stub has joined #zope3-dev11:16
*** pelle_ has joined #zope3-dev11:25
*** natea_ has joined #zope3-dev11:26
*** natea has quit IRC11:34
*** tarek has quit IRC11:37
*** jinty has joined #zope3-dev11:38
*** tarek has joined #zope3-dev11:57
*** stu1 has joined #zope3-dev12:19
*** stub has quit IRC12:36
ignaswhich zc.catalog index can give me a list of indexed pairs? like if i am indexing person titles, would give me a list [('john': 'John'), ('pete', 'Pete'), ('__name__', 'title')] ?12:40
ignasi have a very specific search function, the ordering changes depending on the person who is looking at the person list (i18n and stuff), and don't want to wake up all the persons to sort them by title, and display only 10 of them ...12:41
*** romanofski has quit IRC12:48
*** romanofski has joined #zope3-dev12:48
*** mkerrin has joined #zope3-dev12:50
*** dunny has quit IRC13:19
*** tarek has quit IRC13:25
*** harobed_ has joined #zope3-dev13:40
*** sorindregan has quit IRC13:50
*** sorin has joined #zope3-dev13:51
*** sorin is now known as sorindregan13:52
*** deo has joined #zope3-dev13:58
*** philiKON has joined #zope3-dev14:01
ignasso i have got the index thingie working14:02
ignasbut retrieving IntIds for all the 10K items in the container14:02
ignastakes like 90% of the view rendering time14:02
ignasis the ID generation waking up the object?14:03
philiKONpossibly. it's accessing obj._p_oid14:07
*** ghendi has quit IRC14:07
philiKONand obj._p_jar14:07
ignashow is the default IkeyReference working?14:07
philiKONlook into zope.app.keyreference.persistent14:08
ignashmm, it's using _p_oid14:10
ignaswould that make ZODB load the whole object?14:10
ignasif so, then is there a way to use the catalog without the IntIds ?14:11
ignasi mean i am trying to sort the objects by title before loading them so i would only load objects i need14:11
ignas(sorting is done by me, not by catalog)14:12
*** lurker has quit IRC14:12
ignasmaybe i should just use 2 indexes, one for __name__ and another for title14:13
ignasso i would ask the ValueIndex to give me id's of object with some __name__ (gives me 1 id)14:14
ignasand use that id to get the title14:14
ignaswould still be faster than looking up 10k of int ids (8 seconds)14:14
*** nathany has joined #zope3-dev14:15
*** tarek has joined #zope3-dev14:16
*** nathany has joined #zope3-dev14:16
*** nathany has quit IRC14:18
ignasok, cut the time 50% by using an index for __name__14:28
*** tarek has quit IRC14:31
*** philiKON has quit IRC14:33
*** dlk has left #zope3-dev14:34
ignasok, so apparently doing btree[key] is quite expensive even if you do nothing with the object14:35
*** tarek has joined #zope3-dev14:41
*** nathany has joined #zope3-dev14:41
*** tarek has quit IRC14:43
*** niemeyer has joined #zope3-dev14:43
*** projekt01 has joined #zope3-dev14:45
*** tarek has joined #zope3-dev14:47
*** ghendi has joined #zope3-dev14:50
ignascool, got it blazingly fast by iterating through documents_to_values of the __name__ index to generate all the id __name__ pairs, and title index to sort by title14:50
ignasnot it's 0.2 seconds instead of 15 seconds14:50
*** harobed_ has quit IRC14:51
*** b52laptop has quit IRC14:52
*** b52laptop has joined #zope3-dev14:53
*** jrc2e has joined #zope3-dev15:03
*** jrc2e has left #zope3-dev15:04
*** lurker has joined #zope3-dev15:05
*** niemeyer has quit IRC15:06
*** tarek has quit IRC15:10
*** tarek has joined #zope3-dev15:11
*** rocky|away is now known as rocky15:12
*** niemeyer has joined #zope3-dev15:17
*** harobed has quit IRC15:17
*** philiKON has joined #zope3-dev15:19
*** harobed has joined #zope3-dev15:23
*** J1m has joined #zope3-dev15:23
*** benji has joined #zope3-dev15:24
*** jodok has quit IRC15:34
*** nathany has quit IRC15:36
*** whit has joined #zope3-dev16:05
*** natea_ has quit IRC16:06
*** natea has joined #zope3-dev16:08
*** philiKON_ has joined #zope3-dev16:09
*** redir has joined #zope3-dev16:10
*** avoine has joined #zope3-dev16:16
*** philiKON has quit IRC16:17
*** tarek has quit IRC16:21
*** tarek has joined #zope3-dev16:22
baijumHow to stop test running process in between when running mutiple layers together (Pressing Contol+C doesn't help) ?16:27
ignasbaijum: hmm, i though that mgedmin fixed that in the trunk16:28
baijumI am running tests in Zope 3 trunk16:28
ignasbaijum: there were a lot of bare excepts, but in the zope testrunner trunk now there aren't any16:28
ignasZope3 trunk is not using an up to date testrunner then16:29
* J1m thinks we should investigate nose16:29
baijumah, ok16:29
ignasbaijum: svn up in Zope3/src/zope/testing16:29
ignaswill work until you svn up Zope3 trunk again16:30
baijumignas, I will try, thanks !16:30
philiKON_J1m: nose isn't nearly as flexible as zope.testing wrt layers16:31
J1mI know nothing about it other than we don't own it. :)16:31
J1mI wonder if we could add our testrunner features using it's plugin mechanism.16:32
philiKON_it has a few nice features, but zope.testing isn't that bad16:32
ignassomeone with a Zope3 trunk checkout should set proper zope testing revision in svn props16:32
J1mI think our testrunner is pretty good in a lot of ways.16:32
J1mBut It would be good to try a comparison to:16:32
J1m- See if we can own less or,16:32
J1m- Show why people should use out testrunner or make nose better16:33
J1mNose is pretty popular -- in part because we haven't publicised ours (and because of antu-zope bias :( )16:34
*** redir has quit IRC16:34
philiKON_yeah :/16:34
* philiKON_ considers a lightning talk16:34
philiKON_at EP16:34
philiKON_J1m: btw, i plan to talk about paste + wsgi + zope (+ grok) at EP. i recently made zope work completely on paste.deploy.16:35
J1mCool16:35
J1mdoe you still use ZConfig?16:35
J1mdo16:35
philiKON_optionally16:35
philiKON_for the zodb definition16:36
J1mso w/o a server definition?16:36
philiKON_yes16:36
philiKON_see http://svn.zope.org/zope.paste/trunk/README.txt?rev=73936&view=auto16:36
J1mcool.  I'd love to see this become the norm.16:36
philiKON_the second main section16:36
philiKON_"Deploying Zope 3 on an WSGI-capable webserver"16:37
philiKON_as you can see, you can point to a Data.fs from your paste ini file16:37
philiKON_or, if you want more options, point to a Zconfig-style file16:37
baijumphiliKON_, can I use eggs and buildout instead of Zope 3 instance to try zope.paste ?16:38
philiKON_sure16:38
J1mvery cool.16:38
philiKON_J1m: this is an example of a grok app on paste.deploy16:39
philiKON_http://codespeak.net/svn/z3/NudgeNudge/trunk/nudge.ini16:39
J1mI'd like to see this (or something like it) replace the zope.app.server/zope.app.twisted travesties we have now.16:39
philiKON_as yoiu can see, it plugs in the Deliverance WSGi middleware16:39
philiKON_for theming16:39
philiKON_J1m: +116:39
ignasJ1m: btw about that sorting discussion in Zop3-dev, catalog is really cool, a bit difficult to use properly, but i have managed to sort/batch/filter 10k objects by title while only waking up 10 objects being shown in ~0.2 seconds16:46
ignaswhile doing sorting by title on the python side (i18n reasons)16:46
J1mDid you get the title data from an index?16:47
ignasyes16:47
ignashad to add an index for __name__ <=> intid as well16:47
ignasso i would not have to generate intids for 10k objects16:48
ignaszc.table for display and sorting16:48
*** Jell-O-Fishi has joined #zope3-dev16:50
baijumignas, btw, killing the test running process is not yet working in zope.testing trunk (I think mgedmin did some other improvements...)16:51
ignasstrange, then look for bare excepts in testing and fix them16:52
ignasJ1m: http://zope3.pastey.net/1142516:52
ignasValueIndexes 'title' and '__name__'16:52
baijumignas, there is 222 bare excepts in Zope 3 trunk :(16:53
ignas:D16:53
ignasin look testing only16:53
baijumah, ok16:53
ignasand - OUCH 222 bare excepts is a bit much16:53
J1mBare excepts that reraise are not bad.16:53
ignasyes, forgot about that usecase16:53
J1mI'm a bit surprised that there are so many.16:54
* baijum tried this: find src/zope/ -name "*.py"|xargs grep "except:"|wc -l16:55
ignasbaijum - try to add "grep -v svn"16:55
*** goschtl has left #zope3-dev16:56
J1mThere are plenty of evil ones though. :(16:57
baijumignas, "grep -v svn" is not required16:57
J1mMuch/all of this is in unreleased code.16:57
J1mwell, much16:57
ignasbaijum: what about zope.testing ?16:58
baijumignas, for some test layer killing works..I will see which are not working16:59
ignasthen it's probably the problem on the Zope3 side, not Zope3 testrunner side16:59
baijumignas, it looks like that17:00
*** pghoratiu has left #zope3-dev17:01
*** rocky has quit IRC17:06
*** natea is now known as natea|call17:10
*** sorindregan has quit IRC17:17
*** baijum has quit IRC17:20
*** nathany has joined #zope3-dev17:23
*** nathany_ has joined #zope3-dev17:31
*** nathany has quit IRC17:31
*** timte has quit IRC17:31
*** nathany_ has quit IRC17:36
*** nathany has joined #zope3-dev17:36
*** natea|call is now known as natea17:45
*** cbcunc has joined #zope3-dev17:45
*** alecm has joined #zope3-dev17:50
*** jinty has quit IRC17:53
*** jkakar has joined #zope3-dev17:54
*** rocky has joined #zope3-dev17:56
*** pelle_ has quit IRC17:57
*** hazmat has quit IRC18:12
*** nathany is now known as __nathany18:16
*** hazmat has joined #zope3-dev18:18
*** ChanServ sets mode: +o hazmat18:19
*** philiKON_ has quit IRC18:31
*** philiKON has joined #zope3-dev18:34
*** lurker has quit IRC18:42
*** RaFromBRC has joined #zope3-dev18:51
*** jukart has quit IRC18:55
*** __nathany has quit IRC18:55
ignasif i want catalog to work do must i have a site set?18:56
*** __nathany has joined #zope3-dev18:57
J1mI believe so.18:58
ignasJ1m: i have a nasty piece of voodoo code in schooltool bootstrap :/ i had to move setSite up in the call stack so that local utility setups and catalog indexing would be performed on objects that are added to initialize the database19:01
*** dobee has quit IRC19:02
J1mIt doesn't sound like voodoo code.  If you need to look up components, then the site needs to be set.19:03
ignasthe bootstraping as a whole is something i couldn19:05
ignascouldn't write myself so it's a bit voodoo19:05
ignasi mean i know how it works, and what are the parts19:06
ignasdidn't have to implement it myself ever though19:06
*** pbugni has joined #zope3-dev19:08
*** jbb666 has joined #zope3-dev19:10
*** dobee has joined #zope3-dev19:18
*** jikanter has joined #zope3-dev19:30
philiKONJ1m: what are "ntests"?19:30
J1mIt was just a file naming convention we used for a while at ZC when we were first developing layers.19:31
J1mWhen we had to use functional tests before they were layerfied.19:31
philiKONah, ok19:32
philiKONgotcha19:32
*** jukart has joined #zope3-dev19:34
*** __nathany has quit IRC19:44
*** stu1 has quit IRC19:50
*** romanofski has quit IRC19:57
*** deo has quit IRC19:57
*** jikanter has quit IRC20:04
*** jikanter has joined #zope3-dev20:05
*** natea is now known as natea|away20:29
*** harobed has quit IRC20:34
*** pcardune_mac has joined #zope3-dev20:38
*** lzdych has quit IRC20:58
*** pcardune has joined #zope3-dev21:01
*** RaFromBRC is now known as RaFromBRC|mtg21:02
*** RaFromBRC has joined #zope3-dev21:05
*** RaFromBRC is now known as RaFromBRC|mac21:05
*** tarek has quit IRC21:09
*** jukart has quit IRC21:17
*** ksmith99 has joined #zope3-dev21:17
*** pbugni is now known as pbugni-afk21:21
*** pbugni-afk is now known as pbugni21:29
*** tarek has joined #zope3-dev21:41
*** timte has joined #zope3-dev21:44
*** dobee has quit IRC21:50
*** naro has quit IRC21:52
*** bigkevmcd has joined #zope3-dev21:56
bigkevmcdevenin' all21:56
*** __nathany has joined #zope3-dev21:56
*** redir has joined #zope3-dev22:10
*** tarek has quit IRC22:19
*** dobee has joined #zope3-dev22:25
*** pbugni is now known as pbugni[afk]22:25
*** dobee has quit IRC22:29
*** arroda has joined #zope3-dev22:33
*** cbcunc has quit IRC22:47
*** RaFromBRC|mac has quit IRC22:58
*** d2m has quit IRC22:59
*** RaFromBRC|mtg is now known as RaFromBRC|lunch22:59
*** dobee has joined #zope3-dev22:59
*** twcook has joined #zope3-dev23:01
*** Jell-O-Fishi has quit IRC23:03
*** natea|away is now known as natea23:06
*** zagy has quit IRC23:09
*** ignas has quit IRC23:13
*** rocky is now known as rocky|away23:16
*** pcardune has quit IRC23:16
*** mkerrin has quit IRC23:20
*** Jell-O-Fishi has joined #zope3-dev23:21
*** jukart has joined #zope3-dev23:22
*** jikanter has quit IRC23:23
*** pcardune_mac_ has joined #zope3-dev23:31
*** pbugni[afk] is now known as pbugni23:33
*** zenwryly` has joined #zope3-dev23:37
*** RaFromBRC|lunch is now known as RaFromBRC23:40
*** zenwryly` has quit IRC23:41
*** jukart has quit IRC23:42
*** jfroche has quit IRC23:44
*** b52lap has joined #zope3-dev23:44
*** b52laptop has quit IRC23:45
*** pcardune_mac has quit IRC23:47
*** __nathany has quit IRC23:52
*** dunny has joined #zope3-dev23:53
*** tiredbones_ has joined #zope3-dev23:53
*** __nathany has joined #zope3-dev23:54
*** pcardune_mac_ has quit IRC23:54
*** tiredbones has quit IRC23:56
*** avoine has quit IRC23:58

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