fixed issue 1366, minor rewrite in retrieve, thanks Dominic

This commit is contained in:
Massimo
2013-03-08 10:16:48 -06:00
parent dee3a3b655
commit 5122fbe110
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -9262,7 +9262,8 @@ class Field(Expression):
stream = self.uploadfs.open(name, 'rb')
else:
# ## if file is on regular filesystem
stream = pjoin(file_properties['path'], name)
fullname = pjoin(file_properties['path'], name)
stream = open(fullname,'rb')
return (filename, stream)
def retrieve_file_properties(self, name, path=None):