[BlueBream] getting size of zope.schema.List from a view in bluebream

Joshua Immanuel josh at hipro.co.in
Tue Aug 23 07:34:14 EDT 2011

Hello all,
On Tue, 2011-08-23 at 13:16 +0530, Joshua Immanuel wrote:
>             def getListSize(self):
>                 return len(self.list_field)
> This solves my issue. 

This solves just the '__len__' issue. But if do the slice operation like

I get the following error

        ForbiddenAttribute: ('__getslice__',[...])
I guess my approach is flawed. Implementing all the functionality (like
the one I did for length) that a list provides is a overkill. So, please
guide me in this regard.

Joshua Immanuel
HiPro IT Solutions Private Limited
-------------- 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/dac2d595/attachment.bin 

More information about the bluebream mailing list