forked from expo/troggle
[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:
parent
0bfdc62d70
commit
0f15fd2012
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user