Brian Oliver wrote: > For example: I'd like to restrict the number of a certain type of > object that may appear in a folder. The end-user can add up to the > limit, and afterwards the object type should NO LONGER APPEAR in the > "Add List".
If you put this in your product: def all_meta_types(self): """ What types can you add to this objectManager? """ allowedMetaTypes = ('DTML Document', 'DTML Method') result = [] for metaType in Products.meta_types: if metaType['name'] in allowedMetaTypes: result.append(metaType) return result You can probably modify it to your needs. regards Max M _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] 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 )