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: 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 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: In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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 ''' >
>
> > ''' % (filename, filename) > > sys.exit(0) > -- DaveA