[Zope-CMF] Types, meta_type, content_meta_type, etc...

Florent Guillaume fg@nuxeo.com
Thu, 16 May 2002 18:03:29 +0000 (UTC)


Using standard Zope Products the answer is no. What you *can* do is
filter on meta_type (using filtered_meta_types) but not on portal_type.

Doesn't Loaded Folder (or something like that) do this ? I'm not sure, I
never used it.

Shouldn't be too hard to implement though, just add a hook and call it
from inside PortalFolder.allowedContentType or the like. Or maybe add an
optional container= argument to allowType and use it.

Florent


Carl Rendell  <cer@sol43.com> wrote:
> This may or may not pertain to the fix Florent sent in for the 
> types tool, but...
> 
> I see how one can filter allowed_content_types via the types tool.
> 
> Can a portal folder be created and have allowed content types set 
> as an attribute of the object, or does the current implementation 
> only allow control of allowed content types at the type tool level?
> 
> If it can be done.. how would one go about setting the filter at 
> creation or edit time?
> 
> ~C
> 
> Carl E. Rendell
> Solution43
> Information Distribution Consulting        |   "Ahhhh the power of
> cer@sol43.com                              |    acquisition"  - Chef Z
> 
> 
> 
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
> 
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
> requests
> 


-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com