Chris Withers wrote:
If I define the following in an Article class (which subclasses
Posting):
__ac_permissions__ = Posting.__ac_permissions__ + (
('View', ['prev_item','next_item','showSummary','desc_items'],
('Anonymous', 'Manager')),
)
You don't need to concatenate the permissions
Shane Hathaway wrote:
__ac_permissions__ = Posting.__ac_permissions__ + (
('View', ['prev_item','next_item','showSummary','desc_items'],
('Anonymous', 'Manager')),
)
You don't need to concatenate the permissions of the base classes.
default__class_init__ will pick them up.
Now that
Chris Withers wrote:
Okay, Posting has the following list of methods for the 'view'
permission:
['date_posted','body_len','date_created','time_created','attachment','thread_path','index_html','showBody',