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. -- http://mail.python.org/mailman/listinfo/python-list