[Zope-dev] configuring global utilities in zcml

Chris Withers chris at simplistix.co.uk
Tue Aug 5 06:37:55 EDT 2008


Nikolay Kim wrote:
> you can create utility in python file and then use component=""
> 
> for example utility.py:
> 
> class Utility(object):
>   pass
> 
> myUtility = Utility()
> 
> 
> configure.zcml:
> 
> <utility name="myUtility" component=".utility.myUtility" />

I'm aware of this but it kind of defeats the idea of seperating code and 
  configuration...

So, other ideas?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list