[Zope] .html from python

Garry Saddington garry at schoolteachers.co.uk
Fri Oct 17 17:09:04 EDT 2008


On Friday 17 October 2008 21:30, Andrew Milton wrote:
> +-------[ Garry Saddington ]----------------------
>
> | How would I do this:
> |
> | dtml_method = context.singleitemview.html
> | s =
> | return s
>
> dtml_method = getattr(context, 'singleitemview.html')
> return dtml_method(client=context, REQUEST={}, foo='bar')
Thanks, works great.
Garry


More information about the Zope mailing list