[Zope3-Users] Get a site

FB fbo2 at gmx.net
Mon Jan 22 03:40:28 EST 2007


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()
root=conn.root().data['Application']


Regards,

Frank


More information about the Zope3-users mailing list