Changeset 7576


Ignore:
Timestamp:
3 Feb 2012, 04:07:26 (13 years ago)
Author:
uli
Message:

Add a datacenter ZCML directive that supports exactly one attribute: path

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py

    r7568 r7576  
    927927        """Get the default mail delivery.
    928928        """
     929
     930from zope.configuration.fields import Path
     931class IDataCenterConfig(Interface):
     932    path = Path(
     933        title = u'Path',
     934        description = u"Directory where the datacenter should store"
     935                     u"files by default (adjustable in web UI).",
     936        required = True,
     937        )
     938
  • main/waeup.sirp/trunk/src/waeup/sirp/meta.zcml

    r6138 r7576  
    1010  <grok:grok package=".meta" />
    1111
     12  <meta:directive
     13      namespace="http://namespaces.waeup.org/sirp"
     14      name="datacenter"
     15      schema=".zcml.IDataCenterConfig"
     16      handler=".zcml.data_center_conf"
     17      />
     18
     19
    1220</configure>
Note: See TracChangeset for help on using the changeset viewer.