Changeset 7829


Ignore:
Timestamp:
9 Mar 2012, 22:22:23 (13 years ago)
Author:
Henrik Bettermann
Message:

Register KofaUtils? in configure.zcml. Is that really necessary?

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  
    22           xmlns:grok="http://namespaces.zope.org/grok"
    33           xmlns:i18n="http://namespaces.zope.org/i18n">
     4
    45  <include package="grok" />
    56  <include package="waeup.kofa" file="meta.zcml" />
     
    78  <grok:grok package="." />
    89  <i18n:registerTranslations directory="locales" />
    9 
     10  <utility
     11      factory="waeup.kofa.utils.utils.KofaUtils"
     12      provides="waeup.kofa.interfaces.IKofaUtils"
     13      />
    1014  <includeOverrides package="waeup.kofa.utils" file="overrides.zcml" />
    1115</configure>
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r7819 r7829  
    2222import string
    2323from zope.i18n import translate
     24from zope.interface import implements
    2425from random import SystemRandom as r
    2526from waeup.kofa.interfaces import IKofaUtils
     
    3738    return True
    3839
    39 class KofaUtils(grok.GlobalUtility):
     40class KofaUtils:
    4041    """A collection of parameters and methods subject to customization.
     42
    4143    """
    42     grok.implements(IKofaUtils)
     44    implements(IKofaUtils)
    4345    # This the only place where we define the portal language
    4446    # which is used for the translation of system messages
Note: See TracChangeset for help on using the changeset viewer.