Re: getting size of zope.schema.List from a view in bluebream

"Charlie Clark" <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Organization Clark Consulting & Research
Message-ID <[email protected]>
Am 23.08.2011, 13:34 Uhr, schrieb Joshua Immanuel <[email protected]>:

> 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.

Joshua,

I think it's really difficult to work out what you are trying to do.  
Please state your problem more clearly. Are you still using zope.form or  
are you using z3c.form?

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
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 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.