Changeset 7829 for main/waeup.kofa
- Timestamp:
- 9 Mar 2012, 22:22:23 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/configure.zcml
r7811 r7829 2 2 xmlns:grok="http://namespaces.zope.org/grok" 3 3 xmlns:i18n="http://namespaces.zope.org/i18n"> 4 4 5 <include package="grok" /> 5 6 <include package="waeup.kofa" file="meta.zcml" /> … … 7 8 <grok:grok package="." /> 8 9 <i18n:registerTranslations directory="locales" /> 9 10 <utility 11 factory="waeup.kofa.utils.utils.KofaUtils" 12 provides="waeup.kofa.interfaces.IKofaUtils" 13 /> 10 14 <includeOverrides package="waeup.kofa.utils" file="overrides.zcml" /> 11 15 </configure> -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r7819 r7829 22 22 import string 23 23 from zope.i18n import translate 24 from zope.interface import implements 24 25 from random import SystemRandom as r 25 26 from waeup.kofa.interfaces import IKofaUtils … … 37 38 return True 38 39 39 class KofaUtils (grok.GlobalUtility):40 class KofaUtils: 40 41 """A collection of parameters and methods subject to customization. 42 41 43 """ 42 grok.implements(IKofaUtils)44 implements(IKofaUtils) 43 45 # This the only place where we define the portal language 44 46 # which is used for the translation of system messages
Note: See TracChangeset for help on using the changeset viewer.