Hello,
You forgot to paste interfaces.IMyObject definition.
On Tue, 23 Aug 2011 13:16:24 +0530 you wrote:
Hello all,
While trying to get the length of zope.schema.List field in a view
(like this: len(self.context.list_field) I get the following error
ForbiddenAttribute:
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
Am 23.08.2011, 13:34 Uhr, schrieb Joshua Immanuel j...@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
Hello Charlie,
Thanks for the reply.
On Tue, 2011-08-23 at 13:56 +0200, Charlie Clark wrote:
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?
I am still using zope.formlib.
Hello,
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__',
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: