[Zope-CMF] Accessing subobjects
Andreas Jung
Andreas Jung <lists@andreas-jung.com>
Fri, 04 Oct 2002 13:51:34 +0200
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?
>>
>> Andreas
>>
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests