[z3-five] Programmatic initialization of utilites during the Zope startup phase
Sidnei da Silva
sidnei at enfoldsystems.com
Wed Mar 21 13:53:59 CET 2007
I had a similar issue here, and I was able to just add some code on
the inside the initialize() method of my Zope product:
from zope.interface import providedBy
from zope.component import getGlobalSiteManager
for iface in providedBy(utility):
getGlobalSiteManager().provideUtility(iface, utility, u'')
Are you saying that in your case the global site manager is not
available yet by the time the product's initialize() is called?
--
Sidnei da Silva
Enfold Systems http://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
More information about the z3-five
mailing list