Receing a form variable as a list instead of as a string
nagia.retsina at gmail.com
nagia.retsina at gmail.com
Tue Jun 11 21:29:05 EDT 2013
if page or form.getvalue('show') == 'log':
# it is a python script
page = page.replace( '/home/nikos/public_html/cgi-bin', '' )
elif page or form.getvalue('show') == 'stats':
page = page.replace( '/home/nikos/public_html/cgi-bin', '' )
in the first if option page works a string and replace happens , while in the second it behaves liek a list and the error i mentioned is being produced.
More information about the Python-list
mailing list