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.configuration.fields import GlobalObject, Bool
00003 from zope.schema import ASCII
00004 from zope.app.publisher.browser.metadirectives import IBasicResourceInformation
00005 
00006 class IConfigFeature(IBasicResourceInformation):
00007     """
00008     Defines a feature based on a python configuration
00009     """
00010 
00011     feature = ASCII(
00012         title = u"Feature",
00013         description = u"Name of the feature to define",
00014         required = True,
00015         )
00016 
00017     instance = GlobalObject(
00018         title = u'Object instance',
00019         description = u'Dotted name of the object that holds the attribute.',
00020         required = True,
00021         )
00022 
00023     attribute = ASCII(
00024         title = u"Attribute",
00025         description = u"Attribute name within the object.",
00026         required = True,
00027         )
00028 
00029     negate = Bool(
00030         title = u'Negate',
00031         description = u'If to negate the boolean value, default False',
00032         default = False,
00033         required = False,
00034         )