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


Groups > comp.lang.python > #40513

Re: Downloading a file form a displayed table

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <nikos.gr33k@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*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; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'charset:iso-8859-7': 0.15; 'server,': 0.15; '(filename,': 0.16; 'empty.': 0.16; 'frankly': 0.16; 'sys.exit(0)': 0.16; 'appears': 0.18; 'code.': 0.20; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'linux': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'run': 0.28; 'table,': 0.29; 'source': 0.29; 'running': 0.32; 'print': 0.32; 'code:': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'wrong': 0.34; 'server': 0.35; 'path': 0.35; 'received:209.85': 0.35; 'closing': 0.36; 'useful': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:" 10': 0.40; 'show': 0.63; 'dont': 0.64; '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
X-Received by 10.49.86.40 with SMTP id m8mr2416763qez.30.1362476927698; Tue, 05 Mar 2013 01:48:47 -0800 (PST)
Newsgroups comp.lang.python
Date Tue, 5 Mar 2013 01:48:47 -0800 (PST)
In-Reply-To <mailman.2872.1362476722.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=94.68.127.128; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4
References <f99ae3d5-6f1f-4dfc-84da-78b758a5147a@googlegroups.com> <mailman.2872.1362476722.2939.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 94.68.127.128
MIME-Version 1.0
Subject Re: Downloading a file form a displayed table
From Νίκος Γκρ33κ <nikos.gr33k@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-7
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
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>
Message-ID <mailman.2874.1362476930.2939.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362476930 news.xs4all.nl 6982 [2001:888:2000:d::a6]:44292
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40513

Show key headers only | View raw


Τη Τρίτη, 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.

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)

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