IRC log of #zope3-dev for Wednesday, 2005-01-26

*** niemeyer has joined #zope3-dev00:04
*** solaries has joined #zope3-dev00:10
*** solaries has left #zope3-dev00:18
*** srichter has quit IRC01:22
*** stub has joined #zope3-dev01:36
*** jhauser_ has quit IRC01:38
*** hazmat has quit IRC02:22
*** hazmat has joined #zope3-dev02:36
*** d2m has quit IRC03:07
*** niemeyer has quit IRC03:56
*** hazmat has quit IRC04:00
*** RaFromBRC has joined #zope3-dev04:04
*** RaFromBRC_ has joined #zope3-dev04:10
*** RaFromBRC has quit IRC04:14
*** RaFromBRC has joined #zope3-dev04:18
*** RaFromBRC__ has joined #zope3-dev04:23
*** RaFromBRC__ has quit IRC04:35
*** hazmat has joined #zope3-dev04:41
*** RaFromBRC has quit IRC04:44
*** RaFromBRC_ has quit IRC04:45
*** stub has quit IRC04:46
*** J1m has quit IRC05:23
*** RaFromBRC has joined #zope3-dev05:30
*** RaFromBRC has quit IRC05:32
*** hazmat has quit IRC06:58
*** bradb has quit IRC06:58
*** weeti has quit IRC06:58
*** hazmat has joined #zope3-dev06:58
*** bradb has joined #zope3-dev06:58
*** weeti has joined #zope3-dev06:58
*** bradb has quit IRC07:42
*** hazmat is now known as haz-tennis07:43
*** bradb has joined #zope3-dev07:56
*** __gotcha__ has joined #zope3-dev07:59
*** __gotcha has quit IRC08:14
*** haz-tennis has quit IRC08:55
*** sashav has quit IRC08:55
*** zagy has joined #zope3-dev08:59
*** hazmat has joined #zope3-dev09:12
*** bskahan has quit IRC09:26
*** sashav has joined #zope3-dev10:14
*** sashav has joined #zope3-dev10:20
*** ChanServ sets mode: +o tav10:23
*** alakdan has joined #zope3-dev10:31
*** SteveA has quit IRC10:42
*** SteveA has joined #zope3-dev11:05
*** d2m has joined #zope3-dev11:17
*** hazmat has quit IRC11:47
*** stub has joined #zope3-dev11:48
*** alakdan has left #zope3-dev11:48
*** gintas has joined #zope3-dev11:59
VladDracZopeXMLConfigurationError: File "/home/ivo/Work/Zope3/instances/zope3-plog/lib/python/book/messageboard/browser/configure.zcml", line 131.2-137.4012:25
VladDrac    ConfigurationError: ('Invalid value for', 'class', "Couldn't import book.messageboard.browser.message, No module named smileyutility")12:25
VladDrachmmm12:25
SteveAlooks like an import error in the class12:25
SteveAwhich in turn means there aren't enough unit tests12:26
VladDracno12:26
VladDracfigured it out12:26
VladDracsmileyutility is also a subpackage of book12:26
SteveAPYTHONPATH ?12:26
VladDracsrichter hasn't documented this I think12:26
VladDrachmm12:30
VladDracit's just not complete.. I guess srichter hasn't finished step13 yet12:30
VladDrac(or not checked in his smileyutility12:31
*** vlado has joined #zope3-dev12:33
SteveAwhat i mean is, there's obviously no unit test that tries to import book.messageboard.browser.message12:33
SteveAif there were, this error would have been caught before you tried to load the zcml12:33
*** Aiste has joined #zope3-dev13:12
*** Theuni has quit IRC13:19
*** stub has left #zope3-dev13:20
*** Theuni has joined #zope3-dev13:29
*** niemeyer has joined #zope3-dev13:58
*** mgedmin has joined #zope3-dev14:13
VladDractrue14:52
*** alga_ has joined #zope3-dev14:58
*** gintas has quit IRC14:59
*** gintas has joined #zope3-dev15:29
*** MalcolmC has joined #zope3-dev15:37
*** srichter has joined #zope3-dev15:43
*** ChanServ sets mode: +o srichter15:43
* mgedmin wants to see how container constraints are implemented in zope 316:14
* mgedmin sees no events in sight16:25
*** alakdan has joined #zope3-dev16:28
srichtermgedmin: I think it is not done via events16:28
srichtersee zope.app.container.constraints16:28
mgedminyes, I've noticed16:29
srichterthe sample container, from which the BTree container is derived, uses a special setitem function, which does the check I think16:29
mgedminI'm porting SchoolTool's many-to-many relationships infrastructure to be more Zope3-like16:29
mgedminI was thinking about implementing constraints via events16:30
*** d2m has quit IRC16:30
srichterI would bet that you a change to an event-based check would be quickly approved16:30
*** d2m_ has joined #zope3-dev16:30
alakdanhello, is this the appropriate channel to ask regarding the program examples on the zope3 book?16:30
srichteryes16:30
srichterBTW, to all, I just received my paper copy of the book :-)16:31
* mgedmin wonders if there are any good examples in Zope 3 sources of using events for constraints16:31
srichternot for constraints16:32
srichterbut basically you just copty the checking code to the event handler16:32
alakdank thanks, im just starting out with zope, and currently reading the chapter 13 (Writing a new Content Object). Im stucked with Running Unit Tests against Implementation.16:33
srichterall you need to do is to raise the correct exception16:33
*** bcsaller has joined #zope3-dev16:33
bcsallerhi16:33
*** tvon has joined #zope3-dev16:34
srichteralakdan: there is a bug in the online code example; you can look at the SVN version, which will work16:34
alakdanwhen I run ./bin/test -vpu --dir src/book/messageboard , I get errors.16:34
srichterbcsaller: hi16:34
srichteryep, because of the typo16:34
srichteralakdan: see http://svn.zope.org/book/trunk/messageboard/step01/16:35
srichterlook at interfaces.py, which is the problem16:35
alakdansrichter: ok16:36
*** Theuni has quit IRC16:41
alakdansrichter: I still get errors (did the ln -s messageboard/stepX Zope3/src/book/messageboard), I just need some clarification, should the code be located inside the zope instance directory? I have a zope instance at /home/alakdan/zope/zopehome/src16:42
*** J1m has joined #zope3-dev16:43
srichterZopeInstance/lib/python/messageboard16:43
*** hazmat has joined #zope3-dev16:43
J1msrichter, were you able to reproduce/fix the message board problem?16:44
srichterthe online version refers to the SVN checkout not the release16:44
srichterI still have to update the chapters16:44
srichterJ1m: you mean the bug tracker16:44
srichter?16:44
J1mah yes, sorry16:45
srichterJ1m: no time right now; I have my quals on Saturday16:45
J1mk16:45
alakdansrichter: http://rafb.net/paste/results/bycykP80.html16:47
srichteralakdan: you have to put book into zopehome/lib.python16:49
srichteralakdan: you have to put book into zopehome/lib/python16:49
srichterok, gotta study now16:49
alakdansrichter: ok, thanks a lot!16:49
alakdan:)16:49
*** sashav has quit IRC17:25
*** SteveA_ has joined #zope3-dev17:42
*** SteveA has quit IRC17:43
*** SteveA_ is now known as SteveA17:43
*** faassen has joined #zope3-dev18:16
VladDracsrichter: so where is book.smileyutility? :)18:19
*** bskahan has joined #zope3-dev18:28
srichterVladDrac: http://svn.zope.org/book/trunk/smileyutility/18:29
*** hazmat has quit IRC19:25
*** bskahan has quit IRC19:32
*** SteveA has quit IRC19:48
*** SteveA has joined #zope3-dev19:57
*** sashav has joined #zope3-dev20:20
*** gintas has quit IRC20:29
*** tvon has quit IRC20:31
*** faassen has quit IRC20:32
*** MalcolmC has quit IRC20:34
*** Theuni has joined #zope3-dev20:44
*** vlado has quit IRC20:46
* mgedmin idly tries profiling zope.app.server.main.setup with hotshot22:14
mgedminthe biggest chunk (almost 6%) of startup time is spent in zope/interface/interface.py, in a <lambda> defined line 25022:14
mgedminin class Specification: __bases__ = property(lambda self: self.__dict__.get('__bases__', ()), __setBases)22:15
mgedminit is called 80000 times22:16
* mgedmin gets a slightly different result next time and is baffled22:20
Damasceneyeah i'm not sure why my startup times vary a bit sometimes22:20
Damascene(on the same near-zero load servers)22:20
srichterDamascene: because loaded files seem to be in some sort of OS cache22:20
srichterafter the first startup, my time drops from 10 sec to 3 sec22:21
mgedminon the next run _add_named_adapter from adapter.py and resolve from config.py ate more time than that lambda22:21
*** SteveA has quit IRC22:27
*** gintas has joined #zope3-dev22:33
*** The|uni has joined #zope3-dev22:41
*** srichter has quit IRC22:45
*** SteveA has joined #zope3-dev22:45
*** Aiste has quit IRC22:54
*** niemeyer has quit IRC23:07
*** Theuni has quit IRC23:11
*** mgedmin has quit IRC23:17
*** The|uni has quit IRC23:56
*** alga_ has quit IRC23:59

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