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

2002-01-09 Thread Wolfram Kerber
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's required is a > > getMetaType method that can be suitably protected? >

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

2002-01-08 Thread 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's required is a > getMetaType method that can be suitably protected? > > This would still be a pretty easy fix: