Re: [Zope3-Users] Get a site

2007-03-08 Thread Stephan Richter
On Sunday 28 January 2007 12:23, Florian Lindner wrote: exceptions.ValueError: I/O operation on closed file any idea what caused it? I think you violate the transaction mechanism. I think it would be easier to make a call via the publisher. Regards, Stephan -- Stephan Richter CBU Physics

Re: [Zope3-Users] Get a site

2007-03-08 Thread Florian Lindner
Am Donnerstag, 8. März 2007 20:10 schrieb Stephan Richter: On Sunday 28 January 2007 12:23, Florian Lindner wrote: exceptions.ValueError: I/O operation on closed file any idea what caused it? I think you violate the transaction mechanism. I think it would be easier to make a call via

Re: [Zope3-Users] Get a site

2007-01-28 Thread Florian Lindner
Am Montag, 22. Januar 2007 08:32 schrieb Christian Theune: Hi, Am Sonntag, den 21.01.2007, 14:44 +0100 schrieb Florian Lindner: Hello, I am in a function that has no context and want to set a site. The function is called periodically from a scheduler: from scheduler import loop

Re: [Zope3-Users] Get a site

2007-01-23 Thread Florian Lindner
Am Montag, 22. Januar 2007 09:40 schrieb FB: Hi, On Mon, Jan 22, 2007 at 08:32:21AM +0100, Christian Theune wrote: [snip] You'd have to open a connection to the database, get the root object and use that with setSite(). I don't have the complete spelling for that in my head though.

Re: [Zope3-Users] Get a site

2007-01-22 Thread FB
Hi, On Mon, Jan 22, 2007 at 08:32:21AM +0100, Christian Theune wrote: [snip] You'd have to open a connection to the database, get the root object and use that with setSite(). I don't have the complete spelling for that in my head though. db = zapi.getUtility(IDatabase) conn=db.open()

Re: [Zope3-Users] Get a site

2007-01-22 Thread Florian Lindner
Am Montag, 22. Januar 2007 08:32 schrieb Christian Theune: Hi, Am Sonntag, den 21.01.2007, 14:44 +0100 schrieb Florian Lindner: Hello, I am in a function that has no context and want to set a site. The function is called periodically from a scheduler: from scheduler import loop

Re: [Zope3-Users] Get a site

2007-01-21 Thread Christian Theune
Hi, Am Sonntag, den 21.01.2007, 14:44 +0100 schrieb Florian Lindner: Hello, I am in a function that has no context and want to set a site. The function is called periodically from a scheduler: from scheduler import loop def onStartup(event): refresher =