Subclassing SimpleItem and overriding __allow_access_to_unprotected_subobjects__
22 May
2001
22 May
'01
6:25 p.m.
I am trying to acquire the functionality of SimpleItem and the new Zope 2.2+ security model (methods are private by default) in a single class. Thus I subclass SimpleItem and override __allow_access_to_unprotected_subobjects__ as follows: class subclass(SimpleItem): __allow_access_to_unprotected_subobjects__=None __ac_permissions__=( ('View', ['index_html'], ('Anonymous',))) private = HTMLFile('filename', globals()) . . . I would expect that the 'private' method would no longer be viewable via the web. But it is. Am I missing the obvious here? Mark Postal
9108
Age (days ago)
9108
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Postal