[Zope] delete multiple records sql python etc
Jim Penny
jpenny@universal-fasteners.com
Thu, 6 Dec 2001 16:17:16 -0500
On Thu, Dec 06, 2001 at 12:53:12PM -0800, Todd Graham wrote:
> Thanks again for the info, I've been down this road before and I'm able to
> pass the three values from the form to the python script, but it does not
> seem to come over as a true list that allows one to assign variables to
> items in the list.
>
> For example:
>
> say the value of throw_away_script is
>
> Value1_Value2_Value3
>
> which as far as the script is concerned the list has only 1 entry. Then my
> question becomes how do you parse out the values and assign them to a
> variable?
>
> Thanks,
>
> T
suppose parameter val.
python script:
import string
my_tuple=string.split(val, '_')
return my_tuple
Jim Penny