Mikko Ohtamaa wrote:
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"
Thanks, worked like a charm.
By the way, great job on the developers manual!
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers