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

Reply via email to