[Zope3-dev] getService() call local from global Bug/Hook
Jim Fulton
jim at zope.com
Tue Jun 1 05:51:44 EDT 2004
Stephan Richter wrote:
> On Thursday 27 May 2004 18:33, Roger Ineichen wrote:
>
>>If I lookup the principal annotation service
>>from the local utility I use:
>>
>>zapi.getService(self.context, PrincipalAnnotationServiceName)
>
>
> This should suffice to get you the local or global version based on the
> context. If not, that would be a bug.
No, you should not pass a context argument any more.
I really need to turn the warnings on for using the old call
form. Perhaps I can do that tomorrow.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-dev
mailing list