Back to index

plone3  3.1.7
directives.py
Go to the documentation of this file.
00001 from zope.interface import Interface
00002 from zope.schema import TextLine, Choice
00003 from zope.configuration.fields import Path, Tokens, PythonIdentifier, \
00004         GlobalInterface
00005 
00006 class IRegisterCommandDirective(Interface):
00007     'Register a KSS command plugin'
00008     
00009     name = TextLine(
00010          title=u"Name",
00011          description=u"The name of the command plugin.",
00012          required=True,
00013          )
00014     
00015     jsfile = Path(
00016          title=u"Javascript file",
00017          description=u"The path of the javascript file that defines the plugin",
00018          required=False,
00019          )
00020     
00021 from kss.core.pluginregistry.directives import IRegisterEventTypeDirective, \
00022         IRegisterActionDirective, IRegisterSelectorTypeDirective, \
00023         IRegisterCommandSetDirective