[Zope3-Users] Get a site

Florian Lindner mailinglists at xgm.de
Tue Jan 23 07:41:20 EST 2007


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.
>
> db = zapi.getUtility(IDatabase)
> conn=db.open()
> root=conn.root().data['Application']

Thanks, this way it works!

Regards,

Florian


More information about the Zope3-users mailing list