--On 9. Juni 2007 14:17:14 +0530 Shailesh Kumar <[EMAIL PROTECTED]> wrote:

    from zope.component.globalregistry import getGlobalSiteManager
    gsm = getGlobalSiteManager()
    gsm.unregisterUtility(component=None, provided=None, name=u'')


This won't work with Zope 2.8, however the following code works:

+            from zope.component.servicenames import Utilities
+            from zope.app import zapi
+            s = zapi.getGlobalServices().getService(Utilities)
+            s.register((), ISQLAlchemyWrapper, self.util_id, None)

Unfortunately this code does not work with Zope 2.9 and the related code for Zope 2.10 also does not work with Zope 2.9 :-)

In-CA-we-trust,
Andreas

Attachment: pgplo7qMktOqM.pgp
Description: PGP signature

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to