--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 :-)


Attachment: pgplo7qMktOqM.pgp
Description: PGP signature

Zope3-users mailing list

Reply via email to