[Product-Developers] Traversing to an object like the publisher does

Jan Hackel plonecode at hackel.name
Thu May 14 14:51:09 UTC 2009


>Jan Hackel wrote:
>> I need to write a test that essentially needs to traverse to an operation
>> like the following tal-expression would:
>>
>> tal:condition="context/@@plone_context_state/is_view_template"
>
>context.restrictedTraverse('@@plone_context_state').is_view_template()
>
>Hedley

Well, thanks! While I am pretty sure I tried that, it now works...

Grüße
Jan Hackel






More information about the Product-Developers mailing list