[Zope] (urgent) manage_changeProperties(data='new content') problem
Peter Bengtsson
mail@peterbe.com
Wed, 13 Jun 2001 09:11:47 +0200
So, using manage_changeProperties() doesn't work?
> <dtml-call "REQUEST.set('myVar', 'Hello World')">
> <dtml-call "testo.manage_edit(title='Hola', data=myVar)">
>
> Trick is to pass the title as well.
>
>
> Peter Bengtsson wrote:
>
> > It doesn't matter if the new variable is a variable or a text string.
That
> > is not the problem.
> > I can change the title or any arbitrary property with ease but I fail to
> > change the "content" of the object.
> > Peter
> > ----- Original Message -----
> > From: "Julio Flores Schwarzbeck" <jflores@codeit.com>
> > To: "Peter Bengtsson" <mail@peterbe.com>
> > Sent: Tuesday, June 12, 2001 6:42 PM
> > Subject: Re: [Zope] (urgent) manage_changeProperties(data='new content')
> > problem
> >
> >
> >
> >> Peter,
> >>
> >> Try
> >>
> >> manage_changeProperties(title=someVariable)
> >>
> >> where someVariable can be defined for example:
> >>
> >> <dtml-call "REQUEST.set('someVariable', 'Hello World')">
> >>
> >> Furthermore, if you issue the following:
> >>
> >> manage_changeProperties()
> >>
> >> As long as you prevously define the properties you want to change and
> >> they are in the REQUREST variable, they will be "automatically"
updated,
> >> the ones you do not define, won't
> >>
> >> Good Luck,
> >>
> >> Julio
> >> Codeit.com
> >>
> >> Peter Bengtsson wrote:
> >>
> >>
> >>> This works:
> >>> context.dtmldocument.manage_changeProperties(title='New Title')
> >>>
> >>> This does NOT work:
> >>> context.dtmldocument.manage_changeProperties(data='<dtml-var hello>')
> >>>
> >>> Please help.
> >>> Peter
> >>>
> >>>
> >>> _______________________________________________
> >>> 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 )
> >>
>