Previously Charlie Clark wrote:
> do we need a vocabulary for the content_types? ie. something like
> 
> ContentTypeVocabularyFactory = StaticVocabulary(allowed_content_types)  
> or would this be too restrictive? As it stands I'm not terribly sure  
> how to get the allowed_content_types without a context

vocabulary factories take a context as argument.

This vocabulary is already implemented in plone.app.vocabularies, you
can just use that:
http://dev.plone.org/plone/browser/plone.app.vocabularies/trunk/plone/app/vocabularies/types.py

Wichert.

-- 
Wichert Akkerman <[EMAIL PROTECTED]>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.
_______________________________________________
Zope-CMF maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to