take modification date for media assets from file, not from the resource object
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3233 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
40374f238d
commit
a4c59211ca
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class MediaAsset(MediaAssetFile, ExternalFileAdapter):
|
|||
|
||||
def getModified(self):
|
||||
d = getattr(self.context, '_modified', None)
|
||||
if d is None:
|
||||
if not d:
|
||||
return datetime.fromtimestamp(os.path.getmtime(self.getDataPath()))
|
||||
return d
|
||||
def setModified(self, value):
|
||||
|
|
Loading…
Add table
Reference in a new issue