[Zope-CMF] portal metadata tool policy enforcement
kapil thangavelu
kthangavelu@earthlink.net
Sun, 14 Jul 2002 15:01:56 -0700
hi folks,
i'm embarking on my first cmf based project, and i had a question about the
portal_metadata tool.
it seems that the portal metadata tool can setup default content metadata
values, and handle enforcement of those values. but it doesn't appear to be
wired into content creation or editing. am i missing something?
as is, i'm calling the tool in specific content factory methods to set
initial values, and within the relevant content edit methods.
in terms of generically hooking up the portal_metadata tool, since content
creation is already generic, does it make sense to add a call to the
portal_metadata tool directly to CMFCore.utils.manage_addContent and to the
types tool.constructInstance method? are there other generic mechanisms for
content creation within the cmf?
that would still leave the editing unaccounted for. the only place i can
think to generically add a hook for calling the tool might be the index
method of CMFCatalogAware, but that would require some special consideration
of creation vs. editing within the index method. any ideas?
thanks
kapil