[z3-five] five:localsite zcml conflicts w/ Five 1.4
Rocky Burt
rocky at serverzen.com
Tue Nov 28 13:32:57 CET 2006
On Mon, 2006-27-11 at 21:35 -0800, Rob Miller wrote:
> i'm using the Five 1.4 branch w/ Zope 2.9 branch, and am having problems b/c
> multiple products want the same classes to be declared as possible local
> sites. using the <five:localsite> tag in multiple places for the same class
> will cause a ZCML conflict error. even using overrides.zcml just buys you one
> more location you can declare it.
>
> is there a safe way to do this with ZCML? the only way i can think of to work
> around this for now is to put some code in my package initialization routine
> that will inspect the classes and then call zcml.load_string with the
> five:localsite tag if necessary. is there no better way?
This sounds like a bug to me. five:localsite should react like
five:traverseable, that is it shouldn't have any discriminator and if
you try running it more than once on the same class, the additional
calls should simply have no effect.
Of course with Zope 2.10 I believe we won't have this problem since all
ObjectManager's are IPossibleSite's to begin with.
- Rocky
--
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://codespeak.net/pipermail/z3-five/attachments/20061128/6dca0a87/attachment.pgp
More information about the z3-five
mailing list