[BlueBream] problems working with ZODB in bluebream....
FLORAC, Thierry
thierry.florac at onf.fr
Mon Nov 18 11:41:31 CET 2013
You have to test this code from within a web request.
When using the BlueBream shell, the site manager is not defined (except if you define it by hand via "hooks.setSite()").
Regards,
Thierry
________________________________________
De : bluebream <bluebream-bounces at zope.org> de la part de Tamer Higazi <th982a at googlemail.com>
Envoyé : lundi 18 novembre 2013 11:14
À : bluebream mailinglist
Objet : Re: [BlueBream] problems working with ZODB in bluebream....
Didn't seem to help very much.....
2013-11-18T11:12:32 INFO zope.generations main db: evolving in mode
EVOLVEMINIMUM
Welcome to the interactive debug prompt.
The 'root' variable contains the ZODB root folder.
The 'app' variable contains the Debugger, 'app.publish(path)' simulates
a request.
>>> from zope.site import hooks
>>> site = hooks.getSite()
>>> print site
None
>>>
On 11/18/13 10:05, FLORAC, Thierry wrote:
> Hi,
>
> Did you tried:
>
> >>> from zope.site import hooks
> >>> site = hooks.getSite()
>
> Regards,
> Thierry
_______________________________________________
bluebream mailing list
bluebream at zope.org
https://mail.zope.org/mailman/listinfo/bluebream
More information about the bluebream
mailing list