[Zope-CMF] Formlib for folders
Wichert Akkerman
wichert at wiggy.net
Wed Feb 13 07:16:31 EST 2008
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 <wichert at wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
More information about the Zope-CMF
mailing list