J-C Brand wrote:
> 
> In the actions.xml there is a property "available_expr" in which I can 
> specify a guard condition for when to show this action.
> 
> This expression will render inside a page template, so it can either be 
> a tales expression, or a python expression restricted to the page 
> template environment.
> 
> So, the question is, how can I test that an object is subtyped, or that 
> an object provides a certain interface from within a page template?
> 

I suggest you create a BrowserView which does the complex expression code in
Python.

Please see http://plonemanual.twinapex.fi/content/expressions.html "Custom
expression code"

--
Mikko Ohtamaa
http://www.twinapex.com - Python professionals for hire

-- 
View this message in context: 
http://n2.nabble.com/Testing-for-a-provided-interface-from-within-a-page-template-tp3768049p3768139.html
Sent from the Product Developers mailing list archive at Nabble.com.

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to