[Zope-dev] getting size of zope.schema.List from a view in bluebream
Charlie Clark
charlie.clark at clark-consulting.eu
Tue Aug 23 07:56:55 EDT 2011
Am 23.08.2011, 13:34 Uhr, schrieb Joshua Immanuel <josh at hipro.co.in>:
> 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
More information about the Zope-Dev
mailing list