Hallo Dieter, am Mittwoch, 3. Dezember 2003 um 21:20 schrieben Sie: DM> Holger Schmidt wrote at 2003-12-3 19:28 +0100:
... New Problem:
now i monkey-patch tpc_finish, but what I get is just the transaction-object. In the transaction-Object I can find the affected Objects of the TA (in the "_objects"-List I think) ... But I cannot get the absolute URL of the affected Objects (cannot use obj.absolute_url()), I think this is because the objects in the transaction-object are not acquisition wrapped, are they?
DM> You are right: they are not acquisition wrapped.
Is there a chance to get the path to the object?
DM> In Zope3, but (I fear) not in Zope2. DM> Zope3 abandons acquistion (or more generally: "context wrapper"s) DM> and puts an explicit parent attribute in objects. DM> If you have control over the objects, you can emulate DM> Zope3 behaviour in some sense. E.g. you can code DM> the path in an attribute of the object (be carefull DM> with copy/move/rename). Another try: I have this list of objects which I tried to compare to the changed objects (in the transaction) via the absolute_url()-method ... Is there a better solution to compare my list of objects with the object I get which is affected by the transaction? Is there any chance to compare the objects in my list with the objects i get from the transaction so that i could realize that a special object of my list has changed ...? Any Ideas ...? -- Thanks, Holger