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

Chris McDonough chrism@digicool.com
Tue, 12 Jun 2001 13:34:01 -0400


I think he wants it to be the literal string '<dtml-var hello>' which should
be legal, but isn't, IIRC.

----- Original Message -----
From: "Bill Anderson" <bill@libc.org>
To: <zope@zope.org>
Sent: Tuesday, June 12, 2001 1:34 PM
Subject: Re: [Zope] (urgent) manage_changeProperties(data='new
content')problem


> 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
>
>
>
> _______________________________________________
> 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 )
>