On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote:
<snip>
for filename in os.walk(path):
But os.walk() doesn't return a filename. It returns a tuple. Have you tested any of this code outside of a server?
Also, you're using tabs here. They don't show up in most email programs, so you're better off replacing them with an appropriate number of spaces. After all, indentation matters.
print ''' <form method="get" action="%s"> print( "<tr><td><center> <button type='submit'> %s </button> </td></tr>" ) % filename </form> ''' sys.exit(0)
-- DaveA -- http://mail.python.org/mailman/listinfo/python-list