reverted recent change to retrieve, thanks Anthony for pointing out why the original correct is better than the 'fixed' one
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.2-stable+timestamp.2013.03.08.10.18.44
|
Version 2.4.2-stable+timestamp.2013.03.08.12.05.24
|
||||||
|
|||||||
+3
-2
@@ -9262,8 +9262,9 @@ class Field(Expression):
|
|||||||
stream = self.uploadfs.open(name, 'rb')
|
stream = self.uploadfs.open(name, 'rb')
|
||||||
else:
|
else:
|
||||||
# ## if file is on regular filesystem
|
# ## if file is on regular filesystem
|
||||||
fullname = pjoin(file_properties['path'], name)
|
# this is intentially a sting with filename and not a stream
|
||||||
stream = open(fullname,'rb')
|
# this propagates and allows stream_file_or_304_or_206 to be called
|
||||||
|
stream = pjoin(file_properties['path'], name)
|
||||||
return (filename, stream)
|
return (filename, stream)
|
||||||
|
|
||||||
def retrieve_file_properties(self, name, path=None):
|
def retrieve_file_properties(self, name, path=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user