When I'm building a class which inherits from the OFS.Folder.Folder, how do I exlude the meta_types it brings with it (if it's there they come from). In other words, if I have a class, with meta_type 'MessageFilterFolder', which should only be able to contain instances of meta_type 'MessageFilter', what do I do (i.e. exlude all the other meta_types)? Thanks in advance. -Morten
you can redefine the meta_types tuple like so meta_types=({'name':'MessageFilter', 'action':'manage_addMessageFilter'},) btw how is GUM going? kapil "Morten W. Petersen" wrote:
When I'm building a class which inherits from the OFS.Folder.Folder, how do I exlude the meta_types it brings with it (if it's there they come from).
In other words, if I have a class, with meta_type 'MessageFilterFolder', which should only be able to contain instances of meta_type 'MessageFilter', what do I do (i.e. exlude all the other meta_types)?
Thanks in advance.
-Morten
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[kthangavelu@earthlink.net] | btw how is GUM going? It's ZopeGUM now.. =) It's coming along; I'm planning on releasing a stable version of it available within a week. (CVS will be available soon from SourceForge). -Morten
participants (2)
-
Ender -
morten@esol.no