From: Jason Spisak [mailto:webmaster@mtear.com] Sent: Wednesday, August 18, 1999 11:30 AM To: zope@zope.org Subject: [Zope] Lines property slicing [...] I thougt python list syntax would work like so:
<!--#call "propertysheets.properties.manage_changeProperties( availability[0]=REQUEST['availability'])"-->
But I get a "keyword can't be an expression" eror when trying save the DTML. Anyone have experience with this? I am trying to allow people to store multiple times and edit them and save them again.
The keyword part of python keyword arguments are not evaluated, they must be simple names. You may be able to accomplish what you're attempting using a dictionary - something like: <!--#call "propertysheets.properties.manage_changeProperties( {availability[0]: REQUEST['availability']})"--> I'm not certain about this - but i do know (partly because python told you:) that you can't give expressions as keywords in keyword arguments... Ken klm@digicool.com
participants (1)
-
Ken Manheimer