[Zope] manage_changeProperties example needed

Farrell, Troy troy.farrell@wilcom.com
Mon, 5 Mar 2001 09:54:19 -0600


Did you hear the story about the boy who cried "Wolf\!".

I found the answer to my question.  I have to treat the tokens like a list.
http://www.zope.org/Members/cba/tokens_usage

Thanks for reading.

Troy

-----Original Message-----
From: Farrell, Troy [mailto:troy.farrell@wilcom.com]
Sent: Monday, March 05, 2001 9:32 AM
To: '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 )