[z3-five] browser: page and allowed_interface

Rocky Burt rocky at serverzen.com
Mon Oct 9 01:53:54 CEST 2006


On Sat, 2006-07-10 at 17:34 +0000, George Lee wrote:
> Currently Five processes the "browser:page" and "allowed_interface" as follows,
> in method page of Products.Five.browser.metaconfigure:
> 
> if allowed_interface is not None:
>     for interface in allowed_interface:
>         allowed_attributes.extend(interface.names())
> 
> However, if an interface subclasses another interface, then the superclass
> interface's names are not included in the allowed attributes! This seems very
> counter-intuitive.

Yeah, I recently banged into this as well.  I was expecting that when I
allowed_interface an interface, the interface's super-interface(s) would
also be included.  I guess the real question here is, what does pure
Zope 3 do ?

- 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/20061008/6a7d8b8c/attachment.pgp 


More information about the z3-five mailing list