security.declareObjectProtected('View') appears to be buggy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Medium
|
Unassigned |
Bug Description
This simple wrapper class:
class NamesProxy:
security = ClassSecurityInfo()
# security.
security.
def __init_
security.
def __getitem_
return self.names[item]
security.
def __len__(self):
return len(self.names)
...should allow BTreeFolder2 to be batched over in Python Scripts and Page Templates. However, if the "security.
2004-03-21T22:45:34 PROBLEM(100) Zope Security Policy '<PermissionRole object at 0x84692a0>' passed as roles during validation of 'NamesProxy' is not a sequence.
------
2004-03-21T22:45:34 ERROR(200) SiteError http://
Traceback (innermost last):
File /usr/local/
(Object: Products.MyProduct)
(Info: {'path': ['Products', 'MyProduct', 'NamesProxy'], 'TraversalReque
File /zope/dev_
TypeError: 'in' or 'not in' needs sequence right argument
Changes: submitter email, edited transcript, revised description, new comment
Oops, left a bit fo customer info in there.