Hi

I am trying to run a combined global zca registry as per the docs
http://docs.repoze.org/bfg/1.2/narr/zca.html.

I am using the "Enabling the ZCA Global API by Using The ZCA Global
Registry" option

globalreg = getGlobalSiteManager()
config = Configurator(registry=globalreg)
config.setup_registry(settings=settings)

Unfortunately Configurator.make_wsgi_app calls self.registry.notify
(line 418 of Configurator.py)
however a zope.component.globalregistry.BaseGlobalComponents doesn't
have a notify method so it barfs ;-)


 File "/home/timh/qtrack/qtrack/pages_handler.py", line 88, in main
    application = config.make_wsgi_app()
  File 
"/home/timh/qtrack/lib/python2.5/site-packages/repoze.bfg-1.2.1-py2.5.egg/repoze/bfg/configuration.py",
line 418, in make_wsgi_app
    self.registry.notify(WSGIApplicationCreatedEvent(app))
AttributeError: 'BaseGlobalComponents' object has no attribute 'notify'


I am going to wrap the registry to give it the notify method before I
stick the registry in the configurator  (I do want want subscribers
notified),
but as it stands what is documented won't work.

Regards

T
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to