summaryrefslogtreecommitdiffstats
path: root/expo/fileAbstraction.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:37:24 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:37:24 +0100
commit0f15fd20127f72f400470ccb05e62573a80fb68e (patch)
tree26d215b35d226d0bc6d718ecd8b83a5965f07362 /expo/fileAbstraction.py
parent0bfdc62d70f15b0e429a1f340ccd4087856b3c4d (diff)
downloadtroggle-0f15fd20127f72f400470ccb05e62573a80fb68e.tar.gz
troggle-0f15fd20127f72f400470ccb05e62573a80fb68e.tar.bz2
troggle-0f15fd20127f72f400470ccb05e62573a80fb68e.zip
[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
Diffstat (limited to 'expo/fileAbstraction.py')
-rw-r--r--expo/fileAbstraction.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/expo/fileAbstraction.py b/expo/fileAbstraction.py
index a14eceb..4431480 100644
--- a/expo/fileAbstraction.py
+++ b/expo/fileAbstraction.py
@@ -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):