[z3-five] Programmatic initialization of utilites during the Zope startup phase
Andreas Jung
lists at zopyx.com
Wed Mar 21 14:39:12 CET 2007
--On 21. März 2007 09:53:59 -0300 Sidnei da Silva
<sidnei at enfoldsystems.com> wrote:
> 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?
>
We're still on Zope 2.8.something...I think I tried all that with
the related APIs that are available in Zope 3.0.
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://codespeak.net/pipermail/z3-five/attachments/20070321/08d67ada/attachment.pgp
More information about the z3-five
mailing list