Back to index

plone3  3.1.7
eventvocab.py
Go to the documentation of this file.
00001 from zope.schema.interfaces import IVocabularyFactory
00002 from zope.interface import classProvides
00003 
00004 from zope.app.component.vocabulary import UtilityVocabulary
00005 from plone.contentrules.rule.interfaces import IRuleEventType
00006 
00007 class EventTypesVocabulary(UtilityVocabulary):
00008     """A vocabulary for event interfaces that can be selected for the 'event'
00009     attribute of an IRule.
00010     """
00011     interface = IRuleEventType
00012     classProvides(IVocabularyFactory)