Downloading a file form a displayed table
Dave Angel
davea at davea.name
Tue Mar 5 04:51:41 EST 2013
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
More information about the Python-list
mailing list