Am Mittwoch, 9. Mai 2007 18:18 schrieb Stefan H. Holek:
> You *must* either commit or abort your transaction.
Hello,
I've changed my code to:
def releaseRefreshEvent():
""" Calls all utlities that have a INewsfeed interface registered. """
print "releaseRefreshEvent!!"
db = getUtility
Am Mittwoch, 9. Mai 2007 18:18 schrieb Stefan H. Holek:
> You *must* either commit or abort your transaction.
Ok, so I would prefer to commit. ;-)
If I understood the code correctly I need to have an object implementing
IStorage in order to do that. But I haven't found out where to get such an
You *must* either commit or abort your transaction.
Stefan
On 8. Mai 2007, at 23:02, Florian Lindner wrote:
File "/home/florian/Zope3/src/ZODB/Connection.py", line 268, in
close
raise ConnectionStateError("Cannot close a connection joined to "
ZODB.POSException.ConnectionStateError: C
Hello,
I have a function called by a scheduler. Since it operates outside of Zope
context I need to create a connection to the ZODB in order to call a utility:
db = getUtility(ZODB.interfaces.IDatabase)
conn = db.open()
root = conn.root().data['Application']
zope.app.component