[Product-Developers] Conditioning an action on a view that may or may not be registered?

Sean Gillies sgillies at frii.com
Fri Jan 11 19:41:19 UTC 2008


Martijn Pieters wrote:
> On Jan 11, 2008 7:00 PM, Sean Gillies <sgillies at frii.com> wrote:
>> condition_expr="object/@@foo | nothing"
>>
>> ? That would render the view twice, so not very efficient.
> 
> Untested suggestion: nocall:object/@@foo | nothing
> 
> That would test for traversability to the view, without rendering it.
> 

Thanks, Martijn. It occurred to me too, and seems to be working fine.

Cheers,
Sean




More information about the Product-Developers mailing list