[svn] Made the url file lookup work

Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8186 by julian @ 1/18/2009 6:14 PM
This commit is contained in:
substantialnoninfringinguser 2009-05-13 05:37:24 +01:00
parent 0bfdc62d70
commit 0f15fd2012

View File

@ -21,7 +21,12 @@ def listdir(*path):
#Ignore non-files and non-directories
return l
except:
return urllib.urlopen(settings.FILES + "listdir/" + reduce(urljoin, strippedpath))
if strippedpath:
c = reduce(urljoin, strippedpath)
else:
c = ""
print strippedpath, c
return urllib.urlopen(settings.FILES + "listdir/" + c)
def readFile(*path):