[Zope-CMF] Re: [CMF 2.1] FSPageTemplate & Unicode
Dieter Maurer
dieter at handshake.de
Mon Jan 8 16:21:42 EST 2007
Martin Aspeli wrote at 2007-1-7 23:40 +0000:
> ...
>Why not do it a more Zope3 ish way:
>
>class ICMFTool(Interface):
> """Marker for any CMF tool"""
>
>and then in the subclass of the local component registry:
>
>local_utility = ....
>if ICMFTool.providedBy(local_utility):
> local_utility = local_utility.__of__(context)
>
>or so.
No need to invent a new marker interface for this.
Objects ready to participate in context wrapping indicate this
by the "__of__" method...
--
Dieter
More information about the Zope-CMF
mailing list