Hello Adam, Thanks for the reply.
On Tue, 2011-08-23 at 14:39 +0200, Adam GROSZER wrote:
> Well using removeSecurityProxy is not so nice.
>
> If there's really a list in your property, then zope should give you
> zope.Public access:
>
> _default_checkers = {
> ...
> list: NamesChecker(['__getitem__', '__getslice__', '__len__',
> '__iter__',
> '__contains__', 'index', 'count', '__str__',
> '__add__', '__radd__', ]),
> ...
>
> Can you do:
>
> from zope.security.proxy import removeSecurityProxy
>
> li = removeSecurityProxy(self.context.list_field)
> print type(li)
As I am using the persistent List in the implementation of IMyObject,
the output of the above is
<class 'persistent.list.PersistentList'>
So, How can I access its inbuilt methods without removing the security
proxy. Please guide me.
Regards
--
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in
signature.asc
Description: This is a digitally signed message part
_______________________________________________ bluebream mailing list [email protected] https://mail.zope.org/mailman/listinfo/bluebream
