[Zope-CMF] Accessing subobjects

Florent Guillaume fg@nuxeo.com
Fri, 4 Oct 2002 14:03:47 +0000 (UTC)


Does your python class have a security.declareObjectProtected('View') ?

Florent

Andreas Jung  <lists@andreas-jung.com> wrote:
> I did. The corresponding methods are all registered
> using security.declarePublic("<methodname>") and it still
> does not work.
> 
> -aj
> 
> --On Mittwoch, 2. Oktober 2002 07:30 -0400 Jens Vagelpohl <jens@zope.com> 
> wrote:
> 
> > have you tried setting an explicit security declaration on that method?
> >
> > jens
> >
> > On Wednesday, Oct 2, 2002, at 04:01 US/Eastern, Andreas Jung wrote:
> >
> >> An instance of a CMF class has a method getAllProperties() that returns
> >> a list of instances of a Python class XX. Inside a ZPT I want to call
> >>
> >> <tr tal:repeat="prop here/getAllProperties">
> >> <th tal:content="prop/getDescription">...</th>
> >> </tr>
> >>
> >> where getDescription() is a method of the class XX. This fails with
> >> "you are not allowed to access getDescription in this context" although
> >> __allow_access_to_unprotected_subobjects__ is set to 1.
> >>
> >> Am I missing something or this there a workaround for the problem?
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com