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 this self.context.list_field[offset:limit] 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. Thanks -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org 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 )