Τη Τρίτη, 5 Μαρτίου 2013 3:38:49 μ.μ. UTC+2, ο χρήστης Vytas D. έγραψε:
> Hi,
>
> It is really complicated to reproduce the errors you get by running your code
> since it involves database queries.
>
> Though one thing that really needs your attention is how you handle the
> results from os.wal
On 05/03/2013 09:00, Νίκος Γκρ33κ wrote:
#
=
# display download button for each file and downlaod it on click
#
===
On Tue, Mar 5, 2013 at 8:01 AM, Νίκος Γκρ33κ wrote:
> Please help me correct thois code, iam tryign ti for hours and i cant seem
> to get it workingit irritates me
>
There is no question here. No indication of what isn't working as you
like. No traceback.
>
> path = "/home/nikos/publi
Please help me correct thois code, iam tryign ti for hours and i cant seem to
get it workingit irritates me
path = "/home/nikos/public_html/data/files/"
for filename in os.walk(path):
try:
#find the needed counter for the page URL
cur.execute('''SEL
Νίκος Γκρ33κ writes:
> How is this lien supposed to be written do to iterate over a list of
> filenames?
>
> for filename in list( os.walk(path) ):
>
> i tried the above but still it doesn't work out.
Please learn how Python itself can help you:
$ python
Python 2.7.3 (default, Jan 2 2
Τη Τρίτη, 5 Μαρτίου 2013 11:51:41 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε:
> On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote:
>
> >
>
> >
>
>
>
> > 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
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 some
Τη Τρίτη, 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
On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote:
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
On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote:
#
=
# display download button for each file and downlaod it on click
#
10 matches
Mail list logo