[Zope-dev] Re: configuring global utilities in zcml

2008-08-05 Thread Philipp von Weitershausen
Chris Withers wrote: Nikolay Kim wrote: I'm aware of this but it kind of defeats the idea of seperating code and configuration... So, other ideas? create new zcml directive. That seems pretty heavyweight :-/ It's not. It's in fact relatively easy to write a custom utility directive th

[Zope-dev] Re: configuring global utilities in zcml

2008-08-05 Thread Philipp von Weitershausen
Chris Withers wrote: 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: I'm aware of this but it kind of defeats the idea of seperating code and configuration...