[Zope] utilities @ the site level

2009-12-30 Thread Jim Pharis
Can I register utilities at the site level in zcml? And once I have the local utility registered, how do I pass that site manager context to my browser/forms so I can do things like createObject. createObject seems to fail because it can't find the utility, but I think that's because its not

Re: [Zope] utilities @ the site level

2009-12-30 Thread Jim Pharis
I should clarify that createobject is failing with a ComponentLookupError. On Wed, Dec 30, 2009 at 2:45 PM, Jim Pharis binbr...@gmail.com wrote: Can I register utilities at the site level in zcml? And once I have the local utility registered, how do I pass that site manager context to my

Re: [Zope] utilities @ the site level

2009-12-30 Thread Jim Pharis
So createObject does look in the context of the current site. My issue was somewhere else. I'm still interested to know if you can register utilities at the site level in ZCML though. On Wed, Dec 30, 2009 at 3:22 PM, Jim Pharis binbr...@gmail.com wrote: I should clarify that createobject is

Re: [Zope] utilities @ the site level

2009-12-30 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Pharis wrote: So createObject does look in the context of the current site. My issue was somewhere else. I'm still interested to know if you can register utilities at the site level in ZCML though. No: ZCML is only used to populate the global