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

2002-01-09 Thread Wolfram Kerber
> > 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

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

2002-01-09 Thread Michael R. Bernstein
On Wed, 2002-01-09 at 01:40, Wolfram Kerber wrote: > > From: "Chris McDonough": > > > > > meta_type is an attribute, so you can't just do > > > > > > security.declareProtected(ACCESS_CONTENTS_PERM, 'meta_type') > > > > That's right. > > > > > The id attribute has the getId method, perhaps what'