Receing a form variable as a list instead of as a string

Νικόλαος Κούρας nikos.gr33k at gmail.com
Tue Jun 11 16:16:46 EDT 2013


But if i write it as:

if not page and os.path.exists( file ): 
        # it is an html template 
        page = file.replace( '/home/nikos/public_html/', '' ) 
elif page or form.getvalue('show') == 'log': 
        # it is a python script 
        page = page 
elif page or form.getvalue('show') == 'stats': 
        page = file.replace( '/home/nikos/public_html/', '' )
==================

I get the error that i cannot use 'replac'e to a 'list'.
How can i avoid that?



More information about the Python-list mailing list