[Zope] dynamically call zsqlmethod
Garry Saddington
garry at schoolteachers.co.uk
Wed Nov 25 13:53:20 EST 2009
I am passing a variable named 'column' to the following script and
trying to fill a select box with the result of a zsqlmethod chosen
dynamically using this variable.
print """<select name="nonboolean" method="post">"""
command=context.column()
for row in command:
code=row.code
meaning=row.meaning
print """<option value="%s">%s</option>""" &(code,meaning)
print """</select>"""
return printed
I can not work out how to substitiute the command with the variable, any
help much appreciated.
Regards
Garry
More information about the Zope
mailing list