[Product-Developers] get catalog from Nothing
Simone Orsi
simahawk at gmail.com
Mon Jan 30 13:37:43 UTC 2012
On 27/01/12 19:26, Sean Upton wrote:
> On Thu, Jan 26, 2012 at 1:08 AM, Simone Orsi<simahawk at gmail.com> 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 :)
More information about the Product-Developers
mailing list