mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-01-19 09:22:32 +00:00
[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
|
#Ignore non-files and non-directories
|
||||||
return l
|
return l
|
||||||
except:
|
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):
|
def readFile(*path):
|
||||||
|
Loading…
Reference in New Issue
Block a user