Changeset 7811 for main/waeup.kofa/trunk/src/waeup/kofa/zcml.py
- Timestamp:
- 8 Mar 2012, 19:00:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/zcml.py
r7576 r7811 21 21 ## 22 22 from zope.component.zcml import handler 23 from waeup. sirp.interfaces import IDataCenterConfig23 from waeup.kofa.interfaces import IDataCenterConfig 24 24 25 25 def data_center_conf(context, path): … … 32 32 33 33 - Add to the header: 34 ``xmlns: sirp="http://namespaces.waeup.org/sirp"``34 ``xmlns:kofa="http://namespaces.waeup.org/kofa"`` 35 35 36 - Then, after including waeup. sirp:37 ``< sirp:datacenter path="some/existing/file/path" />``36 - Then, after including waeup.kofa: 37 ``<kofa:datacenter path="some/existing/file/path" />`` 38 38 39 39 In a running instance (where some directive like above was … … 41 41 IDataCenterConfig utility: 42 42 43 >>> from waeup. sirp.interfaces import IDataCenterConfig43 >>> from waeup.kofa.interfaces import IDataCenterConfig 44 44 >>> from zope.component import getUtility 45 45 >>> getUtility(IDataCenterConfig)
Note: See TracChangeset for help on using the changeset viewer.