Package platecom :: Package utils :: Module vocabularies :: Class ContentTypesVocabulary
[hide private]
[frames] | no frames]

Class ContentTypesVocabulary

source code

object --+
         |
        ContentTypesVocabulary

Test ContentTypes vocab,

>>> from iccommunity.core.vocabularies import ContentTypesVocabularyFactory
>>> ccvocab = ContentTypesVocabularyFactory(portal)
>>> ccvocab
<zope.schema.vocabulary.SimpleVocabulary object at ...>
>>> [term.title for term in ccvocab] # doctest: +ELLIPSIS
...                                             +NORMALIZE_WHITESPACE
[...u'Event', u'Favorite', u'File', u'Folder', u'Image',
u'Large Folder', u'Link', u'News Item', u'Page'...]
Instance Methods [hide private]
 
__call__(self, context) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__