Downloading a file form a displayed table
davea at davea.name
Tue Mar 5 10:51:41 CET 2013
On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote:
> 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
More information about the Python-list