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 <[email protected]> de la part de Tamer Higazi 
<[email protected]>
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
[email protected]
https://mail.zope.org/mailman/listinfo/bluebream
_______________________________________________
bluebream mailing list
[email protected]
https://mail.zope.org/mailman/listinfo/bluebream

Reply via email to