IRC log of #zope3-dev for Tuesday, 2005-05-03

*** Aiste has quit IRC00:08
*** BjornT has joined #zope3-dev00:10
*** niemeyer has quit IRC00:15
*** ignas has joined #zope3-dev00:19
*** efge has joined #zope3-dev00:29
*** SureshZ has left #zope3-dev00:33
*** ignas has quit IRC00:37
*** MrTopf has quit IRC00:40
*** MrTopf has joined #zope3-dev00:42
*** srichter has quit IRC00:49
*** C8N has left #zope3-dev00:58
*** GaryPoster has quit IRC01:13
*** BjornT has quit IRC01:33
*** BjornT has joined #zope3-dev01:33
*** projekt01 has joined #zope3-dev01:39
*** srichter has joined #zope3-dev01:50
*** ChanServ sets mode: +o srichter01:51
*** MrTopf has quit IRC02:06
*** ignas has joined #zope3-dev02:31
*** projekt01 has left #zope3-dev03:05
*** yota has quit IRC03:07
*** GaryPoster has joined #zope3-dev03:22
*** efge has quit IRC04:09
*** RaFromBRC has quit IRC04:12
*** GaryPoster has quit IRC05:44
*** kaczordek has joined #zope3-dev07:01
*** viyyer has joined #zope3-dev07:02
*** `anthony has quit IRC07:17
*** philiKON has quit IRC08:07
*** zagy has joined #zope3-dev08:16
zagymoin08:38
Damasceneoh no08:53
*** `anthony has joined #zope3-dev08:56
*** hdima has joined #zope3-dev09:09
*** BjornT has quit IRC09:16
*** BjornT has joined #zope3-dev09:47
*** SteveA has quit IRC10:20
*** MrTopf has joined #zope3-dev10:39
*** yota has joined #zope3-dev10:43
*** MrTopf has quit IRC10:50
*** MacYET has joined #zope3-dev11:04
*** mgedmin has joined #zope3-dev11:19
*** philiKON has joined #zope3-dev12:09
MacYETphilikon!12:13
philiKONMacYET, !12:22
mgedminzope 3 url traversers are too difficult12:25
MacYETcan you explain why utilities registered with a factory can not be created through createObject()?12:25
*** tarek_ has joined #zope3-dev12:26
MacYETtarek_: you're working with textindexng in cps?12:26
*** kaczordek has quit IRC12:34
tarek_hello MacYET,12:39
tarek_It's not the default one yet but will be. It is in some products12:40
MacYETic..you might look at txng v312:45
tarek_oh, ok12:50
tarek_thanks for the tip12:50
*** MrTopf has joined #zope3-dev12:51
tarek_is this something you've just released ?12:53
MacYEThopefully during the next days12:54
MacYETit's in the cvs12:54
*** yota has quit IRC12:56
tarek_cool :)12:57
MacYETpreparing beta 1 now13:10
tarek_cool13:13
*** ignas has quit IRC13:14
*** MrTopf has quit IRC13:16
*** Aiste has joined #zope3-dev13:18
MacYETtarek_: b1 is available from SF13:19
tarek_ok i'll check for it today or tomorrow thks13:26
tarek_so you dropped left truncation ?13:26
MacYETi re-added it on sunday13:30
MacYETalthough it is an expensive operation13:30
tarek_yup13:31
tarek_so have you planned a Z3 version yet ?13:31
MacYETthe core is z3-ish13:32
MacYETthe z2 stuff is just a thin layer13:32
tarek_i've read Jim's doc on Z3 Catalog on CVS, it's quite interesting13:32
tarek_oh ok13:32
MacYETon top of the core13:32
MacYETmeans, you need zope 2.813:32
tarek_k13:32
tarek_s/CVS/SVN13:32
MacYETbut the core is z3 only13:33
MacYETno z2 magic :)13:33
tarek_:)13:33
VladDractarek> which doc/where?13:45
*** philiKON has quit IRC13:50
*** bska|mobile has joined #zope3-dev14:03
*** faassen has joined #zope3-dev14:08
*** `anthony has quit IRC14:25
*** ignas has joined #zope3-dev14:32
*** MrTopf has joined #zope3-dev14:35
*** mooded has joined #zope3-dev14:36
VladDrac    def __setitem__(self, key, object):14:48
VladDrac        "See IProcessInstanceContainer"14:48
VladDrac        # We cannot make the message the parent right away, since it is not14:48
VladDrac        # added to any message board yet;14:48
VladDrac        setitem(self, self.wfdata.__setitem__, key, object)14:48
VladDraclooks a bit messageboard specific :)14:48
*** alga has joined #zope3-dev14:57
*** xenru has joined #zope3-dev15:10
* VladDrac found out what's wrong15:15
VladDracthe mix catalog + workflow + intid15:15
VladDraccatalog subscribes to IntIdAddedEvent and attempts to index the catalog15:16
VladDracwhich simply fails for some workflow machinery (that shouldn't be indexed in the first place)15:16
VladDracdamn why is svn.zope.org so slow?15:24
VladDracyay! bug fixed15:26
*** srichter has quit IRC15:32
*** __gotcha has joined #zope3-dev15:34
*** `anthony has joined #zope3-dev15:34
*** tvon has quit IRC15:39
*** MrTopf has quit IRC15:39
*** MacYET has quit IRC15:39
*** `anthony has quit IRC15:39
*** mooded has quit IRC15:39
*** ignas has quit IRC15:39
*** viyyer has quit IRC15:39
*** MalcolmC has quit IRC15:39
*** Theuni has quit IRC15:39
*** d2m has quit IRC15:39
*** vinsci has quit IRC15:39
*** xenru has quit IRC15:39
*** faassen has quit IRC15:39
*** Damascene has quit IRC15:39
*** Jim7J1AJH has quit IRC15:39
*** robotika has quit IRC15:39
*** VladDrac has quit IRC15:39
*** jack-e|away has quit IRC15:39
*** tonico has quit IRC15:39
*** stub has quit IRC15:39
*** bska|mobile has quit IRC15:40
*** GaryPoster has joined #zope3-dev15:40
*** `anthony has joined #zope3-dev15:40
*** xenru has joined #zope3-dev15:40
*** mooded has joined #zope3-dev15:40
*** MrTopf has joined #zope3-dev15:40
*** ignas has joined #zope3-dev15:40
*** faassen has joined #zope3-dev15:40
*** MacYET has joined #zope3-dev15:40
*** viyyer has joined #zope3-dev15:40
*** tvon has joined #zope3-dev15:40
*** MalcolmC has joined #zope3-dev15:40
*** Damascene has joined #zope3-dev15:40
*** tonico has joined #zope3-dev15:40
*** Theuni has joined #zope3-dev15:40
*** d2m has joined #zope3-dev15:40
*** stub has joined #zope3-dev15:40
*** robotika has joined #zope3-dev15:40
*** vinsci has joined #zope3-dev15:40
*** Jim7J1AJH has joined #zope3-dev15:40
*** jack-e|away has joined #zope3-dev15:40
*** VladDrac has joined #zope3-dev15:40
*** bskahan has joined #zope3-dev15:41
*** niemeyer has joined #zope3-dev15:47
*** GaryPoster has quit IRC15:48
*** __gotcha has quit IRC15:49
*** mgedmin has quit IRC15:53
*** alga has quit IRC15:53
*** philiKON has joined #zope3-dev15:54
*** Aiste has quit IRC15:54
*** SureshZ has joined #zope3-dev15:55
*** Aiste has joined #zope3-dev16:07
*** GaryPoster has joined #zope3-dev16:23
VladDracdamn16:30
VladDracmy fix won't work16:31
*** __gotcha has joined #zope3-dev16:43
*** Aiste has quit IRC16:48
* VladDrac wonders if his code will ever work16:56
* VladDrac tests zope-hack #90238923416:59
*** stub has quit IRC17:01
VladDracand it fails17:02
VladDracokay17:02
VladDractime to abort my project and start doign something usefull17:02
VladDraczope3 is just not ready yet for me :(17:03
MacYETtake a beer and php17:06
VladDracyeah or worse, plone17:06
VladDracbut at least it has a working catalog/workflow combination17:06
GaryPosterVladDrac: the original traceback you sent indicates that the workflow object has not yet been added to the ZODB.17:07
GaryPosterI don't know anything about that workflow package, so I can't help you there.17:07
GaryPosterBut basically, if you can see someplace in the workflow code where the object is being added to a parent (already in the ZODB), and move it to before where you are encountering the problem, then that might help.17:08
VladDracthe catalog/intid is trying to index the workflow object. Don't know why it fails, but it doesn't make any sense, but *every* workaround I try has sideeffects17:09
*** hdima has quit IRC17:09
GaryPosterIt fails because they can only work with objects that have been added to the ZODB.17:09
GaryPosterYou can actually hack around this, even, I think--give the object a connection before you know where you want to put it--but the better approach is to try and add it to the database first,17:10
GaryPosterAnd yes, the catalog/workflow story needs a more user/developer-friendly story.17:11
VladDrachow do you add it to the database?17:12
GaryPosterSo moving on might be a good solution for now.  If you want to explore a bit more, I'd try to figure out where the workflow object is added and make it happen before the event is fired that kicks the catalog/intid utility17:12
VladDraca setitem() is being done17:12
GaryPosterTo what?  Before the event is fired?17:13
VladDracdoesn't setitem() trigger the event?17:13
*** SureshZ has left #zope3-dev17:13
GaryPosterdepends on the container17:13
GaryPoster(I'm sorry, I really know nothing about that workflow package)17:14
GaryPosterbut yes, usually.17:14
VladDracok, well the workflow tool is trying to add some state to my object, this causes an ObjectAdded event, which the IntId tool intercepts, whch the catalog intercepts which tries the to index the specific workflow object17:15
* VladDrac often gets lost17:15
GaryPosterheh, understood.17:15
GaryPosterI know the intid/catalog stuff.  Give me a module and line number for the workflow tool bit?17:16
*** robotika has quit IRC17:16
*** Aiste has joined #zope3-dev17:17
VladDraclet's see17:17
GaryPosterAlso, has your object already been added to a container at this point?17:18
GaryPoster(a container which is itself already connected, eventually, to the Zope root?)17:18
*** mgedmin has joined #zope3-dev17:20
VladDracit's in the process of being added17:20
VladDracadding the object triggers both catalog and workflow subscribers17:20
VladDraczope.app.workflow.instance ProcessInstanceContainerAdapter.__setitem__ plays a role17:20
VladDracah yeah, that addapts IAnnotatable to erm...17:21
VladDracsomething else :)17:21
GaryPosterheh17:21
VladDracope/app/workflow/stateful/contentworkflow.py17:24
VladDracdef NewObjectProcessInstanceCreator(obj, event):17:24
GaryPosteryeah, it looks like your context (your object) hasn't been added to a container yet, so it doesn't have a connection yet.  Either that, or the annotation you're using has a bug...hoping that's not the case.17:25
VladDrac            pi_container[pd_name] = pi17:25
VladDrac17:25
GaryPosteryou ok with pdb?17:25
VladDracyeah17:25
* VladDrac 's been pdbing for two days now :)17:25
*** srichter has joined #zope3-dev17:26
GaryPosterlol.  I'd try a pdb in app/worflow/instance.py...inside the __init__ of ProcessInstanceContainerAdapter...and see if context has a ._p_jar attribute17:26
VladDrachold on need to revert my workarounds17:27
GaryPosterok cool, need to do some work :-).  ping me when you're ready.17:27
VladDracready17:27
VladDrac> /home/ivo/Work/Zope3/Zope3-svn/src/zope/app/workflow/instance.py(72)__init__()17:28
VladDrac-> self.context = context17:28
VladDrac(Pdb) print self._p_jar17:28
VladDrac*** AttributeError: 'ProcessInstanceContainerAdapter' object has no attribute '_p_jar'17:28
GaryPosterprint context._p_jar17:30
VladDracNone17:30
GaryPostercontext is your object?17:31
VladDrac(Pdb) print context17:31
VladDrac<cubic.types.document.Document object at 0xb677bf6c>17:31
VladDracit is17:31
GaryPosterso that's the root of the problem (or getting closer to it, at least): context must have a _p_jar by now.17:31
GaryPosterusually that happens by having put your object in or on another object that already is in the ZODB.17:33
VladDracafaik I'm depending on the basic Zope3 machinery here17:33
GaryPosterYour code needs to make sure that happens before you do whatever you do that's running this code (waves hands)17:33
GaryPosterah...17:33
VladDracerm and well, workflow stuff of course17:33
GaryPostergive me a 'w'.17:33
GaryPosteri.e., pdb 'where'17:34
VladDrachttp://paste.plone.org/1695 <- there17:34
GaryPosterk one sec17:34
GaryPosterp context.__parent__17:36
GaryPosterfor me?17:36
VladDracNone17:37
GaryPosterk.  brb.17:38
GaryPosterback.  What version of Zope 3 is this?17:40
GaryPosterNot head, right?17:40
GaryPosterah, here's the problem.17:41
VladDractrunk17:42
GaryPosterthe workflow stuff is connected to the create event.  This workflow code can't work connected to the create event.17:42
GaryPosterit can work connected to the add event.17:43
GaryPosterthe create event is fired before the object gets added to the database17:44
*** viyyer has quit IRC17:44
GaryPosterdid you hook the event up (in zcml) or was that in Zope 3 proper?17:44
GaryPosterI mean, is this potentially a bug in your zcml or is it a bug in the Zope 3 zcml?17:46
GaryPosterVladDrac, ping me (write my nick) when you reply...17:48
VladDracI didn't add any events for this (garyposter)17:48
GaryPoster:-) that was quick17:49
VladDracgary all I'm doing is mix catalog and workflow17:50
*** GaryPoster has quit IRC17:52
*** GaryPoster has joined #zope3-dev17:53
GaryPosterVladDrac: sorry, my client crashed :-(17:54
VladDrac<VladDrac> gary all I'm doing is mix catalog and workflow17:54
VladDracis what you might have missed17:54
*** tvon has quit IRC17:54
GaryPosterRight, so here's the problem: zope/app/workflow/stateful/configure.zcml line 127.  Like I said, I don't know the workflow package, but that should not be a create event subscription.17:56
GaryPosterthat should be to zope.app.container.interfaces.IObjectAddedEvent in order for what you want to work.17:59
VladDracah ok18:00
*** zagy_ has joined #zope3-dev18:00
*** zagy has quit IRC18:00
VladDracI assume I'm not the only one right? :)18:00
GaryPostersrichter, does anyone maintain zope.app.workflow?18:00
GaryPosterJim thinks its not really maintained18:01
GaryPosterit's18:01
* VladDrac has to leave in a few minutes18:01
VladDracbut I'll try the new event first18:01
GaryPostercool.18:01
VladDrachmm18:01
VladDracproblem seems to remain18:02
GaryPosterrestarted?18:03
VladDracrestarted yeah18:04
VladDracadded the breakpoint again - context now has a proper parent18:05
GaryPosterok, next time you want to tackle this send me the traceback18:05
VladDractx18:06
VladDracgottago now18:06
GaryPostercool18:06
*** yota has joined #zope3-dev18:07
Theunihmm18:08
* Theuni notes that there would be potential for gocept's workflow engine to make it to the Zope 3 world in some future18:08
MacYETyeah18:09
GaryPosteryep, that would be good.  Jim has some workflow code in zope/wfmc that we're using internally18:11
GaryPosterbut it needs a lot of connecting wires18:11
*** ignas has quit IRC18:14
*** Theuni has quit IRC18:15
*** Theuni has joined #zope3-dev18:15
srichterGaryPoster: I maintain it as it is in my and Phillip's book18:19
srichterI will fix it for the release again18:19
GaryPosterok, cool.  thanks18:19
*** alga has joined #zope3-dev18:44
*** xenru has quit IRC19:02
*** __gotcha has quit IRC19:04
*** SteveA has joined #zope3-dev19:34
*** Theuni has quit IRC19:40
*** tarek_ has quit IRC19:45
*** __gotcha has joined #zope3-dev19:55
*** MrTopf has quit IRC20:00
*** __gotcha has quit IRC20:09
*** alga has quit IRC20:10
*** Aiste has quit IRC21:12
*** mgedmin has quit IRC21:12
*** mooded has quit IRC21:33
*** faassen has quit IRC21:45
*** RaFromBRC has joined #zope3-dev22:14
*** bskahan has quit IRC22:16
*** J1m has joined #zope3-dev22:34
J1msrichter, ayt?22:36
*** J1m has quit IRC22:37
*** srichter has quit IRC22:43
*** xerophyte has joined #zope3-dev22:44
xerophytehow can i check out the zope3 dev book from svn.. just wanna know the URL for the book22:46
*** projekt01 has joined #zope3-dev22:46
*** SureshZ has joined #zope3-dev23:17
*** MiUlEr has joined #zope3-dev23:33
*** projekt01 has quit IRC23:33
*** MrTopf has joined #zope3-dev23:52
MrTopf'evening23:53
*** MrTopf has quit IRC23:55

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