how to get rendered conten of a dtml method from python ??
Hi there this fine Sunday evening, I try to create a DTML Method on the fly, pass it some data and would like to get back that data rendered like so: context.manage_addProduct['OFSP'].manage_addDTMLMethod(id='tmp2', title='') obj = context['tmp2'] obj.manage_edit(data, '') data = obj(_, context.REQUEST) now my question: what do I have to pass in the call obj(....) I would like to have it rendered (for instance) <dtml-var absolute_url> thanks for your insights Robert
data = obj(_, context.REQUEST)
data = obj(context, context.REQUEST) # returns http://www.absolute.url/webpage data = obj.data # returns <dtml-var absolute_url> Or am I completely untestedly wrong?
now my question: what do I have to pass in the call obj(....)
I would like to have it rendered (for instance) <dtml-var absolute_url>
thanks for your insights
Robert
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
it works, thank you (I could have sworn to have tried it, ...) Robert ----- Original Message ----- From: "Peter Bengtsson" <mail@peterbe.com> To: "Robert Rottermann" <robert@redcor.ch>; <zope@zope.org> Sent: Monday, September 10, 2001 12:37 PM Subject: Re: [Zope] how to get rendered conten of a dtml method from python ??
data = obj(_, context.REQUEST)
data = obj(context, context.REQUEST) # returns http://www.absolute.url/webpage data = obj.data # returns <dtml-var absolute_url>
Or am I completely untestedly wrong?
now my question: what do I have to pass in the call obj(....)
I would like to have it rendered (for instance) <dtml-var absolute_url>
thanks for your insights
Robert
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Peter Bengtsson -
Robert Rottermann