[Zope] manage_changeProperties

kent sin kentsin@yahoo.com
Thu, 12 Jul 2001 14:25:59 -0700 (PDT)


dieter, 

Thanks for the information. 

How can I construct a fake REQUEST from the python? Or
are there any module in zope I can get?

Rgs,
Kent Sin
--- Dieter Maurer <dieter@handshake.de> wrote:
> kent sin writes:
>  > WHY
>  > 
>  > doc.manage_changeProperties(listProperty=1)
>  > 
>  >  works but
>  > 
>  > doc.manage_changeProperties({'listProperty':1}) 
>  > 
>  > doesn't ?
> Because it expects its first (optional) positional
> argument
> to be a "Request" object.
> 
> You may try to emulate what you want with:
> 
>     REQUEST.other.update({'listProperty':1})">
>     doc.manage_changeProperties(REQUEST)
> 
> 
> Dieter

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/