Re: [BlueBream] getting size of zope.schema.List from a view in bluebream
Joshua Immanuel <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel,gmane.comp.web.zope.bluebream |
|---|---|
| Organization | HiPro IT Solutions Private Limited |
| Message-ID | <1314106984.2450.135.camel@jimman> |
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
_______________________________________________
Zope-Dev maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk5TrmcACgkQWw85XwuSFMItpgCgqLynpjyJbvz3h9fsTDLvxm89 Vu8AnR66Q45Fk72+OIR/x3cD4ZG4oLMb =h3zv -----END PGP SIGNATURE-----