Re: [Zope3-Users] Still trying to connect to ZODB from external

2007-05-24 Thread Florian Lindner
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

Re: [Zope3-Users] Still trying to connect to ZODB from external

2007-05-11 Thread Florian Lindner
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

Re: [Zope3-Users] Still trying to connect to ZODB from external

2007-05-09 Thread Stefan H. Holek
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

[Zope3-Users] Still trying to connect to ZODB from external

2007-05-08 Thread Florian Lindner
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