[BlueBream] [Zope-dev] getting size of zope.schema.List from a view in bluebream
Joshua Immanuel
josh at hipro.co.in
Tue Aug 23 09:43:03 EDT 2011
Hello Adam,
On Tue, 2011-08-23 at 15:13 +0200, Adam GROSZER wrote:
> <class class="persistent.list.PersistentList">
> <allow attributes="__getitem__ __getslice__ __len__ __iter__
> __contains__ index count data" />
> </class>
>
> Should do it. (but beware I did not test!)
>
> That is in zope.app.security/_protections.zcml
>
> Might be that you'd need to include that package.
Yes. Including that file in zcml solved the issue.
<include package="zope.app.security" file="_protections.zcml" />
Apart from the PersistentList and PersistentDict I see many other BTree
related allow attributes configurations. I guess these configurations
are not available in any other place and including this
'_protections.zcml' is safe.
Thanks for the tip.
Regards
--
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/bluebream/attachments/20110823/2c5dd517/attachment.bin
More information about the bluebream
mailing list