[Zope] transaction-objects

Holger Schmidt hs at keppler-it.de
Wed Dec 3 18:49:43 EST 2003


Hello,

I have a problem concerning transaction-objects(ZODB/Transaction.py).
I get the TA-Object from the ZODB.Connection.Connection.tpc_finish
Method:
"def tpc_finish(self, transaction):"

In the TA-Object is a list called _objects where the affected objects
are stored.

My Problem is that I have to get the objects Zope-Path but when i use
object.absolute_url() I get the following error:

Traceback (innermost last):
  File /data/Zope/lib/python/ZPublisher/Publish.py, line 102, in publish
  File /data/Zope/lib/python/Zope/App/startup.py, line 200, in commit
  File /data/Zope/lib/python/ZODB/Transaction.py, line 252, in commit
  File /data/Zope/lib/python/ZODB/Transaction.py, line 356, in _finish_one
  File /data/Zope/lib/python/Products/MyProduct/__init__.py, line 61, in new_tpc_finish
  File /data/Zope/lib/python/Products/MyProduct/UpdateRemoteThread.py, line 60, in run
  File /data/Zope/lib/python/OFS/Traversable.py, line 36, in absolute_url
    (Object: test)
AttributeError: get

Is the object not "acquisition wrapped"?
Is there a possibility to get the path to the object?

btw obj.getPhysicalPath() just returns the id of the object not the
path :(


-- 
Thanks,
Holger





More information about the Zope mailing list