[Zope-dev] Re: [ZPT] accessing object attributes from pythonexpression raises error

Wolfram Kerber wk@gallileus.de
Wed, 9 Jan 2002 19:13:37 +0100


>
> Interesting. I didn't think you could have more than one
> setDefaultAccess in a class. If you can, then you can set:
>
> security.setDefaultAccess('deny')
> security.setDefaultAccess({'meta_type': 1})

The last 'setDefaultAccess' statement in a class will define the actual
behaviour, i.e use only one.

>
> But otherwise, you would have to list all attributes of the class in the
> dict of a single statement, wouldn't you?

No, all attributes that aren't in the dict are private.


Wolfram