[Zope] (urgent) manage_changeProperties(data='new content') problem

Bill Anderson bill@libc.org
12 Jun 2001 11:34:43 -0600


On 12 Jun 2001 18:15:18 +0200, Peter Bengtsson wrote:
> This works:
> context.dtmldocument.manage_changeProperties(title='New Title')
> 
> This does NOT work:
> context.dtmldocument.manage_changeProperties(data='<dtml-var hello>')

This will make data be: <dtml-var hello>


You can't put DTML in a python assignmetn and expect it to be evaluated.


If hello is available in the local namespace, you could do:
context.document.manage_changeProperties(data=hello)

you _may_ need to make it ...(data=hello())

it depends on what hello is/does.

Bill