[Zope] manage_changeProperties example needed
Chris Muldrow
muldrow@mac.com
Mon, 05 Mar 2001 10:52:40 -0500
I'm passing name=value pairs like this:
newob.propertysheets.FLSNewsProperties.manage_changeProperties({'User':varU
ser}) where varUser is a variable set earlier in my script and User is the
property I wish to set. Since I'm not sending form information to the
script, I don't pass REQUEST into the manage_changeProperties. Hope this
helps.
-- Chris Muldrow, muldrow@mac.com
> From: "Farrell, Troy" <troy.farrell@wilcom.com>
> Date: Mon, 5 Mar 2001 09:31:39 -0600
> To: "'zope@zope.org'" <zope@zope.org>
> Subject: [Zope] manage_changeProperties example needed
>
> The Zope Help/API docs/PropertySheet page says that I can use
> manage_changeProperties:
>
> manage_changeProperties(REQUEST=None, **kw):
>
> I always see people using it like this:
>
> manage_changeProperties(REQUEST)
>
> The help file says I can use name=value pairs, but I can't seem to implement
> this. I don't understand the format it wants. I've tried the following:
>
>
> logfile.propertysheets.NetShowLogFileProperties.manage_changeProperties(None
> , logfile_line_ids = current_logfile_line_ids + ' ' + logfile_line_id)
>
>
> logfile.propertysheets.NetShowLogFileProperties.manage_changeProperties(REQU
> EST, logfile_line_ids = current_logfile_line_ids + ' ' + logfile_line_id)
>
>
> logfile.propertysheets.NetShowLogFileProperties.manage_changeProperties(REQU
> EST=None, logfile_line_ids = current_logfile_line_ids + ' ' +
> logfile_line_id)
>
> But each one returns 'illegal argument type for built-in operation' for this
> line in my Python Script. I don't know if you can tell, but I am only
> interested in changing the property 'logfile_line_ids'(tokens type). As it
> is probably evident, I don't understand the meaning and function of
> parameters like 'REQUEST=None' and '**kw' (that looks like a pointer to a
> char array :)
>
> Thanks for any pointers,
>
> Troy
>
> _______________________________________________
> 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 )