Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40515

Re: Downloading a file form a displayed table

Date 2013-03-05 05:05 -0500
From Dave Angel <davea@davea.name>
Subject Re: Downloading a file form a displayed table
References <f99ae3d5-6f1f-4dfc-84da-78b758a5147a@googlegroups.com> <mailman.2872.1362476722.2939.python-list@python.org> <d1eb23c3-8ad2-4131-b3ed-2a3602105b26@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2876.1362477912.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 03/05/2013 04:48 AM, Νίκος Γκρ33κ wrote:
> Τη Τρίτη, 5 Μαρτίου 2013 11:45:09 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε:
>
>> It would be useful to actually specifying the context of this fragment
>>
>> of code.  Presumably it's running on a web server somewhere, and you're
>>
>> expecting the filenames to somehow show up on a browser.  Which OS and
>>
>> which version of Python for that server, and what brand and version of
>>
>> browser?
>>
>>
>>
>> Have you considered closing the table, and ending the body of the page?
>
> The server run Linux and python version is v2.7 and the browser is Chrome v27
>
> The source appears empty.

In that case, there's something wrong far outside of this code fragment. 
  A web page (html) has lots of required elements which were presumably 
in other parts of the script that are not shown here.


>
> Frankly i dont see anythign wrong with my code:
>
> 	path = "/data/files/"
> 	
> 	for filename in os.walk(path):
> 		print '''
> 		<form method="get" action="%s">
> 			<tr><td><center> <button type="submit"> %s </button> </td></tr>
> 		</form>
> 		''' % (filename, filename)
> 			
> 	sys.exit(0)
>


-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Downloading a file form a displayed table Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-05 01:00 -0800
  Re: Downloading a file form a displayed table Dave Angel <davea@davea.name> - 2013-03-05 04:45 -0500
    Re: Downloading a file form a displayed table Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-05 01:48 -0800
      Re: Downloading a file form a displayed table Dave Angel <davea@davea.name> - 2013-03-05 05:05 -0500
    Re: Downloading a file form a displayed table Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-05 01:48 -0800
  Re: Downloading a file form a displayed table Dave Angel <davea@davea.name> - 2013-03-05 04:51 -0500
    Re: Downloading a file form a displayed table Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-05 02:24 -0800
      Re: Downloading a file form a displayed table Lele Gaifax <lele@metapensiero.it> - 2013-03-05 12:29 +0100
    Re: Downloading a file form a displayed table Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-05 02:24 -0800
  Re: Downloading a file form a displayed table Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-05 05:01 -0800
    Re: Downloading a file form a displayed table Joel Goldstick <joel.goldstick@gmail.com> - 2013-03-05 08:38 -0500
    Re: Downloading a file form a displayed table "Vytas D." <vytasd2013@gmail.com> - 2013-03-05 13:38 +0000
      Re: Downloading a file form a displayed table Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-05 06:37 -0800
      Re: Downloading a file form a displayed table Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-05 06:37 -0800
  Re: Downloading a file form a displayed table Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-05 14:04 +0000

csiph-web