Hi,

I've created a Zope local utility which stores some properties which I also
want to get access to as part of the Zope startup process, but can't for the
life of me figure out how to hook into this startup process in such a way
that I can call getUtility() and get access to the registered utility.

More specifically, I'm writing a product which needs to publish some data
using DNS Service Discovery, for which I'm using PyBonjour.  This works fine
and I can register a service at run time as the user sets things up and
changes properties, but I also need to use these persisted settings at Zope
startup to publish the registration then.

On reflection, it's probably the case that I shouldn't be using a local
utility and instead persist these settings in a more global way, but to be
honest I'm getting lost here and any pointers as to which direction I should
take would be welcome!

Cheers,
Alex.

-- 
View this message in context: 
http://n2.nabble.com/Startup-hook-to-access-local-utility-properties-tp1367509p1367509.html
Sent from the Product Developers mailing list archive at Nabble.com.


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to