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

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'context': 0.05; 'filename': 0.07; 'filenames': 0.07; 'subject:file': 0.07; 'subject:form': 0.07; 'python': 0.09; "'''": 0.09; 'filename)': 0.09; 'page?': 0.09; 'specifying': 0.09; 'charset:iso-8859-7': 0.15; 'server,': 0.15; '(filename,': 0.16; 'empty.': 0.16; 'frankly': 0.16; 'sys.exit(0)': 0.16; 'wrote:': 0.17; 'appears': 0.18; 'code.': 0.20; 'elements': 0.23; 'linux': 0.24; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'run': 0.28; 'table,': 0.29; 'case,': 0.29; 'source': 0.29; 'code': 0.31; 'running': 0.32; 'print': 0.32; 'to:addr :python-list': 0.33; 'code:': 0.33; 'version': 0.34; 'wrong': 0.34; 'server': 0.35; 'path': 0.35; 'something': 0.35; 'closing': 0.36; 'useful': 0.36; 'far': 0.37; 'subject:: ': 0.38; 'page': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'skip:" 10': 0.40; 'received:192.168': 0.40; 'show': 0.63; 'dont': 0.64; 'received:74.208': 0.71; 'brand': 0.78; 'browser.': 0.81; '2013': 0.84; 'presumably': 0.84; '\xcc\xe1\xf1\xf4\xdf\xef\xf5': 0.84; 'fragment': 0.91; 'angel': 0.93
Date Tue, 05 Mar 2013 05:05:00 -0500
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2
MIME-Version 1.0
To python-list@python.org
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>
In-Reply-To <d1eb23c3-8ad2-4131-b3ed-2a3602105b26@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-7; format=flowed
Content-Transfer-Encoding 8bit
X-Provags-ID V02:K0:ITr3fmPfq6yTI/2LYEpp2zCesVf7SaZgZlNNBBj8bPA myTS1CFlJLrzTBhuiiDHtMHeyGNXnDoUe9KDywrsfne8Mn30/Z 4ZuRb4oLWZcCCw0GrkgRJw6cg5czMr8F5rYYd74aa0he8btR7J OJ8ycVHi2Wi9KNqqtO6giZjdwputocaq/dGlsJv8WeyFYWyrJm Rm8wqHxfBvozgU/nH/sRTfQ5uuONQzshMLIBS9n4mcBvc6j0Co 7KRp1bfSXViCt1xivPLwIj3wU9wSZ1okUFgT1equO1VqgJzfZn Q7ex4svK18DOHL9BZ3GBwMbVaS7u5OWog8FgE4yPNUrLp7SYw= =
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2876.1362477912.2939.python-list@python.org> (permalink)
Lines 44
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362477912 news.xs4all.nl 6904 [2001:888:2000:d::a6]:56986
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40515

Show key headers only | 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