*** Aiste has quit IRC | 00:08 | |
*** BjornT has joined #zope3-dev | 00:10 | |
*** niemeyer has quit IRC | 00:15 | |
*** ignas has joined #zope3-dev | 00:19 | |
*** efge has joined #zope3-dev | 00:29 | |
*** SureshZ has left #zope3-dev | 00:33 | |
*** ignas has quit IRC | 00:37 | |
*** MrTopf has quit IRC | 00:40 | |
*** MrTopf has joined #zope3-dev | 00:42 | |
*** srichter has quit IRC | 00:49 | |
*** C8N has left #zope3-dev | 00:58 | |
*** GaryPoster has quit IRC | 01:13 | |
*** BjornT has quit IRC | 01:33 | |
*** BjornT has joined #zope3-dev | 01:33 | |
*** projekt01 has joined #zope3-dev | 01:39 | |
*** srichter has joined #zope3-dev | 01:50 | |
*** ChanServ sets mode: +o srichter | 01:51 | |
*** MrTopf has quit IRC | 02:06 | |
*** ignas has joined #zope3-dev | 02:31 | |
*** projekt01 has left #zope3-dev | 03:05 | |
*** yota has quit IRC | 03:07 | |
*** GaryPoster has joined #zope3-dev | 03:22 | |
*** efge has quit IRC | 04:09 | |
*** RaFromBRC has quit IRC | 04:12 | |
*** GaryPoster has quit IRC | 05:44 | |
*** kaczordek has joined #zope3-dev | 07:01 | |
*** viyyer has joined #zope3-dev | 07:02 | |
*** `anthony has quit IRC | 07:17 | |
*** philiKON has quit IRC | 08:07 | |
*** zagy has joined #zope3-dev | 08:16 | |
zagy | moin | 08:38 |
---|---|---|
Damascene | oh no | 08:53 |
*** `anthony has joined #zope3-dev | 08:56 | |
*** hdima has joined #zope3-dev | 09:09 | |
*** BjornT has quit IRC | 09:16 | |
*** BjornT has joined #zope3-dev | 09:47 | |
*** SteveA has quit IRC | 10:20 | |
*** MrTopf has joined #zope3-dev | 10:39 | |
*** yota has joined #zope3-dev | 10:43 | |
*** MrTopf has quit IRC | 10:50 | |
*** MacYET has joined #zope3-dev | 11:04 | |
*** mgedmin has joined #zope3-dev | 11:19 | |
*** philiKON has joined #zope3-dev | 12:09 | |
MacYET | philikon! | 12:13 |
philiKON | MacYET, ! | 12:22 |
mgedmin | zope 3 url traversers are too difficult | 12:25 |
MacYET | can you explain why utilities registered with a factory can not be created through createObject()? | 12:25 |
*** tarek_ has joined #zope3-dev | 12:26 | |
MacYET | tarek_: you're working with textindexng in cps? | 12:26 |
*** kaczordek has quit IRC | 12:34 | |
tarek_ | hello MacYET, | 12:39 |
tarek_ | It's not the default one yet but will be. It is in some products | 12:40 |
MacYET | ic..you might look at txng v3 | 12:45 |
tarek_ | oh, ok | 12:50 |
tarek_ | thanks for the tip | 12:50 |
*** MrTopf has joined #zope3-dev | 12:51 | |
tarek_ | is this something you've just released ? | 12:53 |
MacYET | hopefully during the next days | 12:54 |
MacYET | it's in the cvs | 12:54 |
*** yota has quit IRC | 12:56 | |
tarek_ | cool :) | 12:57 |
MacYET | preparing beta 1 now | 13:10 |
tarek_ | cool | 13:13 |
*** ignas has quit IRC | 13:14 | |
*** MrTopf has quit IRC | 13:16 | |
*** Aiste has joined #zope3-dev | 13:18 | |
MacYET | tarek_: b1 is available from SF | 13:19 |
tarek_ | ok i'll check for it today or tomorrow thks | 13:26 |
tarek_ | so you dropped left truncation ? | 13:26 |
MacYET | i re-added it on sunday | 13:30 |
MacYET | although it is an expensive operation | 13:30 |
tarek_ | yup | 13:31 |
tarek_ | so have you planned a Z3 version yet ? | 13:31 |
MacYET | the core is z3-ish | 13:32 |
MacYET | the z2 stuff is just a thin layer | 13:32 |
tarek_ | i've read Jim's doc on Z3 Catalog on CVS, it's quite interesting | 13:32 |
tarek_ | oh ok | 13:32 |
MacYET | on top of the core | 13:32 |
MacYET | means, you need zope 2.8 | 13:32 |
tarek_ | k | 13:32 |
tarek_ | s/CVS/SVN | 13:32 |
MacYET | but the core is z3 only | 13:33 |
MacYET | no z2 magic :) | 13:33 |
tarek_ | :) | 13:33 |
VladDrac | tarek> which doc/where? | 13:45 |
*** philiKON has quit IRC | 13:50 | |
*** bska|mobile has joined #zope3-dev | 14:03 | |
*** faassen has joined #zope3-dev | 14:08 | |
*** `anthony has quit IRC | 14:25 | |
*** ignas has joined #zope3-dev | 14:32 | |
*** MrTopf has joined #zope3-dev | 14:35 | |
*** mooded has joined #zope3-dev | 14: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 not | 14:48 |
VladDrac | # added to any message board yet; | 14:48 |
VladDrac | setitem(self, self.wfdata.__setitem__, key, object) | 14:48 |
VladDrac | looks a bit messageboard specific :) | 14:48 |
*** alga has joined #zope3-dev | 14:57 | |
*** xenru has joined #zope3-dev | 15:10 | |
* VladDrac found out what's wrong | 15:15 | |
VladDrac | the mix catalog + workflow + intid | 15:15 |
VladDrac | catalog subscribes to IntIdAddedEvent and attempts to index the catalog | 15:16 |
VladDrac | which simply fails for some workflow machinery (that shouldn't be indexed in the first place) | 15:16 |
VladDrac | damn why is svn.zope.org so slow? | 15:24 |
VladDrac | yay! bug fixed | 15:26 |
*** srichter has quit IRC | 15:32 | |
*** __gotcha has joined #zope3-dev | 15:34 | |
*** `anthony has joined #zope3-dev | 15:34 | |
*** tvon has quit IRC | 15:39 | |
*** MrTopf has quit IRC | 15:39 | |
*** MacYET has quit IRC | 15:39 | |
*** `anthony has quit IRC | 15:39 | |
*** mooded has quit IRC | 15:39 | |
*** ignas has quit IRC | 15:39 | |
*** viyyer has quit IRC | 15:39 | |
*** MalcolmC has quit IRC | 15:39 | |
*** Theuni has quit IRC | 15:39 | |
*** d2m has quit IRC | 15:39 | |
*** vinsci has quit IRC | 15:39 | |
*** xenru has quit IRC | 15:39 | |
*** faassen has quit IRC | 15:39 | |
*** Damascene has quit IRC | 15:39 | |
*** Jim7J1AJH has quit IRC | 15:39 | |
*** robotika has quit IRC | 15:39 | |
*** VladDrac has quit IRC | 15:39 | |
*** jack-e|away has quit IRC | 15:39 | |
*** tonico has quit IRC | 15:39 | |
*** stub has quit IRC | 15:39 | |
*** bska|mobile has quit IRC | 15:40 | |
*** GaryPoster has joined #zope3-dev | 15:40 | |
*** `anthony has joined #zope3-dev | 15:40 | |
*** xenru has joined #zope3-dev | 15:40 | |
*** mooded has joined #zope3-dev | 15:40 | |
*** MrTopf has joined #zope3-dev | 15:40 | |
*** ignas has joined #zope3-dev | 15:40 | |
*** faassen has joined #zope3-dev | 15:40 | |
*** MacYET has joined #zope3-dev | 15:40 | |
*** viyyer has joined #zope3-dev | 15:40 | |
*** tvon has joined #zope3-dev | 15:40 | |
*** MalcolmC has joined #zope3-dev | 15:40 | |
*** Damascene has joined #zope3-dev | 15:40 | |
*** tonico has joined #zope3-dev | 15:40 | |
*** Theuni has joined #zope3-dev | 15:40 | |
*** d2m has joined #zope3-dev | 15:40 | |
*** stub has joined #zope3-dev | 15:40 | |
*** robotika has joined #zope3-dev | 15:40 | |
*** vinsci has joined #zope3-dev | 15:40 | |
*** Jim7J1AJH has joined #zope3-dev | 15:40 | |
*** jack-e|away has joined #zope3-dev | 15:40 | |
*** VladDrac has joined #zope3-dev | 15:40 | |
*** bskahan has joined #zope3-dev | 15:41 | |
*** niemeyer has joined #zope3-dev | 15:47 | |
*** GaryPoster has quit IRC | 15:48 | |
*** __gotcha has quit IRC | 15:49 | |
*** mgedmin has quit IRC | 15:53 | |
*** alga has quit IRC | 15:53 | |
*** philiKON has joined #zope3-dev | 15:54 | |
*** Aiste has quit IRC | 15:54 | |
*** SureshZ has joined #zope3-dev | 15:55 | |
*** Aiste has joined #zope3-dev | 16:07 | |
*** GaryPoster has joined #zope3-dev | 16:23 | |
VladDrac | damn | 16:30 |
VladDrac | my fix won't work | 16:31 |
*** __gotcha has joined #zope3-dev | 16:43 | |
*** Aiste has quit IRC | 16:48 | |
* VladDrac wonders if his code will ever work | 16:56 | |
* VladDrac tests zope-hack #902389234 | 16:59 | |
*** stub has quit IRC | 17:01 | |
VladDrac | and it fails | 17:02 |
VladDrac | okay | 17:02 |
VladDrac | time to abort my project and start doign something usefull | 17:02 |
VladDrac | zope3 is just not ready yet for me :( | 17:03 |
MacYET | take a beer and php | 17:06 |
VladDrac | yeah or worse, plone | 17:06 |
VladDrac | but at least it has a working catalog/workflow combination | 17:06 |
GaryPoster | VladDrac: the original traceback you sent indicates that the workflow object has not yet been added to the ZODB. | 17:07 |
GaryPoster | I don't know anything about that workflow package, so I can't help you there. | 17:07 |
GaryPoster | But 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 |
VladDrac | the 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 sideeffects | 17:09 |
*** hdima has quit IRC | 17:09 | |
GaryPoster | It fails because they can only work with objects that have been added to the ZODB. | 17:09 |
GaryPoster | You 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 |
GaryPoster | And yes, the catalog/workflow story needs a more user/developer-friendly story. | 17:11 |
VladDrac | how do you add it to the database? | 17:12 |
GaryPoster | So 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 utility | 17:12 |
VladDrac | a setitem() is being done | 17:12 |
GaryPoster | To what? Before the event is fired? | 17:13 |
VladDrac | doesn't setitem() trigger the event? | 17:13 |
*** SureshZ has left #zope3-dev | 17:13 | |
GaryPoster | depends on the container | 17:13 |
GaryPoster | (I'm sorry, I really know nothing about that workflow package) | 17:14 |
GaryPoster | but yes, usually. | 17:14 |
VladDrac | ok, 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 object | 17:15 |
* VladDrac often gets lost | 17:15 | |
GaryPoster | heh, understood. | 17:15 |
GaryPoster | I know the intid/catalog stuff. Give me a module and line number for the workflow tool bit? | 17:16 |
*** robotika has quit IRC | 17:16 | |
*** Aiste has joined #zope3-dev | 17:17 | |
VladDrac | let's see | 17:17 |
GaryPoster | Also, 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-dev | 17:20 | |
VladDrac | it's in the process of being added | 17:20 |
VladDrac | adding the object triggers both catalog and workflow subscribers | 17:20 |
VladDrac | zope.app.workflow.instance ProcessInstanceContainerAdapter.__setitem__ plays a role | 17:20 |
VladDrac | ah yeah, that addapts IAnnotatable to erm... | 17:21 |
VladDrac | something else :) | 17:21 |
GaryPoster | heh | 17:21 |
VladDrac | ope/app/workflow/stateful/contentworkflow.py | 17:24 |
VladDrac | def NewObjectProcessInstanceCreator(obj, event): | 17:24 |
GaryPoster | yeah, 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] = pi | 17:25 |
VladDrac | 17:25 | |
GaryPoster | you ok with pdb? | 17:25 |
VladDrac | yeah | 17:25 |
* VladDrac 's been pdbing for two days now :) | 17:25 | |
*** srichter has joined #zope3-dev | 17:26 | |
GaryPoster | lol. I'd try a pdb in app/worflow/instance.py...inside the __init__ of ProcessInstanceContainerAdapter...and see if context has a ._p_jar attribute | 17:26 |
VladDrac | hold on need to revert my workarounds | 17:27 |
GaryPoster | ok cool, need to do some work :-). ping me when you're ready. | 17:27 |
VladDrac | ready | 17:27 |
VladDrac | > /home/ivo/Work/Zope3/Zope3-svn/src/zope/app/workflow/instance.py(72)__init__() | 17:28 |
VladDrac | -> self.context = context | 17:28 |
VladDrac | (Pdb) print self._p_jar | 17:28 |
VladDrac | *** AttributeError: 'ProcessInstanceContainerAdapter' object has no attribute '_p_jar' | 17:28 |
GaryPoster | print context._p_jar | 17:30 |
VladDrac | None | 17:30 |
GaryPoster | context is your object? | 17:31 |
VladDrac | (Pdb) print context | 17:31 |
VladDrac | <cubic.types.document.Document object at 0xb677bf6c> | 17:31 |
VladDrac | it is | 17:31 |
GaryPoster | so that's the root of the problem (or getting closer to it, at least): context must have a _p_jar by now. | 17:31 |
GaryPoster | usually that happens by having put your object in or on another object that already is in the ZODB. | 17:33 |
VladDrac | afaik I'm depending on the basic Zope3 machinery here | 17:33 |
GaryPoster | Your code needs to make sure that happens before you do whatever you do that's running this code (waves hands) | 17:33 |
GaryPoster | ah... | 17:33 |
VladDrac | erm and well, workflow stuff of course | 17:33 |
GaryPoster | give me a 'w'. | 17:33 |
GaryPoster | i.e., pdb 'where' | 17:34 |
VladDrac | http://paste.plone.org/1695 <- there | 17:34 |
GaryPoster | k one sec | 17:34 |
GaryPoster | p context.__parent__ | 17:36 |
GaryPoster | for me? | 17:36 |
VladDrac | None | 17:37 |
GaryPoster | k. brb. | 17:38 |
GaryPoster | back. What version of Zope 3 is this? | 17:40 |
GaryPoster | Not head, right? | 17:40 |
GaryPoster | ah, here's the problem. | 17:41 |
VladDrac | trunk | 17:42 |
GaryPoster | the workflow stuff is connected to the create event. This workflow code can't work connected to the create event. | 17:42 |
GaryPoster | it can work connected to the add event. | 17:43 |
GaryPoster | the create event is fired before the object gets added to the database | 17:44 |
*** viyyer has quit IRC | 17:44 | |
GaryPoster | did you hook the event up (in zcml) or was that in Zope 3 proper? | 17:44 |
GaryPoster | I mean, is this potentially a bug in your zcml or is it a bug in the Zope 3 zcml? | 17:46 |
GaryPoster | VladDrac, ping me (write my nick) when you reply... | 17:48 |
VladDrac | I didn't add any events for this (garyposter) | 17:48 |
GaryPoster | :-) that was quick | 17:49 |
VladDrac | gary all I'm doing is mix catalog and workflow | 17:50 |
*** GaryPoster has quit IRC | 17:52 | |
*** GaryPoster has joined #zope3-dev | 17:53 | |
GaryPoster | VladDrac: sorry, my client crashed :-( | 17:54 |
VladDrac | <VladDrac> gary all I'm doing is mix catalog and workflow | 17:54 |
VladDrac | is what you might have missed | 17:54 |
*** tvon has quit IRC | 17:54 | |
GaryPoster | Right, 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 |
GaryPoster | that should be to zope.app.container.interfaces.IObjectAddedEvent in order for what you want to work. | 17:59 |
VladDrac | ah ok | 18:00 |
*** zagy_ has joined #zope3-dev | 18:00 | |
*** zagy has quit IRC | 18:00 | |
VladDrac | I assume I'm not the only one right? :) | 18:00 |
GaryPoster | srichter, does anyone maintain zope.app.workflow? | 18:00 |
GaryPoster | Jim thinks its not really maintained | 18:01 |
GaryPoster | it's | 18:01 |
* VladDrac has to leave in a few minutes | 18:01 | |
VladDrac | but I'll try the new event first | 18:01 |
GaryPoster | cool. | 18:01 |
VladDrac | hmm | 18:01 |
VladDrac | problem seems to remain | 18:02 |
GaryPoster | restarted? | 18:03 |
VladDrac | restarted yeah | 18:04 |
VladDrac | added the breakpoint again - context now has a proper parent | 18:05 |
GaryPoster | ok, next time you want to tackle this send me the traceback | 18:05 |
VladDrac | tx | 18:06 |
VladDrac | gottago now | 18:06 |
GaryPoster | cool | 18:06 |
*** yota has joined #zope3-dev | 18:07 | |
Theuni | hmm | 18:08 |
* Theuni notes that there would be potential for gocept's workflow engine to make it to the Zope 3 world in some future | 18:08 | |
MacYET | yeah | 18:09 |
GaryPoster | yep, that would be good. Jim has some workflow code in zope/wfmc that we're using internally | 18:11 |
GaryPoster | but it needs a lot of connecting wires | 18:11 |
*** ignas has quit IRC | 18:14 | |
*** Theuni has quit IRC | 18:15 | |
*** Theuni has joined #zope3-dev | 18:15 | |
srichter | GaryPoster: I maintain it as it is in my and Phillip's book | 18:19 |
srichter | I will fix it for the release again | 18:19 |
GaryPoster | ok, cool. thanks | 18:19 |
*** alga has joined #zope3-dev | 18:44 | |
*** xenru has quit IRC | 19:02 | |
*** __gotcha has quit IRC | 19:04 | |
*** SteveA has joined #zope3-dev | 19:34 | |
*** Theuni has quit IRC | 19:40 | |
*** tarek_ has quit IRC | 19:45 | |
*** __gotcha has joined #zope3-dev | 19:55 | |
*** MrTopf has quit IRC | 20:00 | |
*** __gotcha has quit IRC | 20:09 | |
*** alga has quit IRC | 20:10 | |
*** Aiste has quit IRC | 21:12 | |
*** mgedmin has quit IRC | 21:12 | |
*** mooded has quit IRC | 21:33 | |
*** faassen has quit IRC | 21:45 | |
*** RaFromBRC has joined #zope3-dev | 22:14 | |
*** bskahan has quit IRC | 22:16 | |
*** J1m has joined #zope3-dev | 22:34 | |
J1m | srichter, ayt? | 22:36 |
*** J1m has quit IRC | 22:37 | |
*** srichter has quit IRC | 22:43 | |
*** xerophyte has joined #zope3-dev | 22:44 | |
xerophyte | how can i check out the zope3 dev book from svn.. just wanna know the URL for the book | 22:46 |
*** projekt01 has joined #zope3-dev | 22:46 | |
*** SureshZ has joined #zope3-dev | 23:17 | |
*** MiUlEr has joined #zope3-dev | 23:33 | |
*** projekt01 has quit IRC | 23:33 | |
*** MrTopf has joined #zope3-dev | 23:52 | |
MrTopf | 'evening | 23:53 |
*** MrTopf has quit IRC | 23:55 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!