On 27/01/12 19:26, Sean Upton wrote:
On Thu, Jan 26, 2012 at 1:08 AM, Simone Orsi<[email protected]> wrote:
but - if I'm not wrong - I think you should import getSite as
from zope.site.hooks import getSite
I think zope.app.component.hooks and zope.site.hooks are both recently
(?) deprecated in favor of:
from zope.component.hooks import getSite
This appears to be the place getSite() and setSite() are actually defined.
Sean
It seems you're right
http://svn.zope.org/zope.site/trunk/src/zope/site/hooks.py?rev=113062&view=markup
Thanks for pointing out :)
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers