[Zope-dev] Re: __ac_permissions__ question
Shane Hathaway
shane@digicool.com
Mon, 21 Aug 2000 10:48:11 -0400
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 of the base classes.
default__class_init__ will pick them up.
>
> and Posting.__ac_permissions__ also defines a 'View' permission, which
> methods are covered?
Assertions made on a method in a subclass override the assertions made
in the base class.
I hope that's clear enough...
Shane