[Zope-CMF] Re: ICMFTool marker interface

Christian Heimes heimes at faho.rwth-aachen.de
Mon Apr 19 10:17:45 EDT 2004


Casey Duncan wrote:
> Would this be a base interface for all tools?

Yes

> What is the use case?

For example:

obj = getattr(portal_root, id, None)
if obj and ICMFTool.isImplementedBy(obj):
     raise 'It's not allowed to create an object with the same id as a tool'

Christian




More information about the Zope-CMF mailing list