take modification date for media assets from file, not from the resource object

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3232 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2009-02-15 11:16:09 +00:00
parent 7294bc122b
commit 40374f238d

View file

@ -94,7 +94,7 @@ class MediaAsset(MediaAssetFile, ExternalFileAdapter):
def getModified(self):
d = getattr(self.context, '_modified', None)
if d is None:
return datetime.fromtimestamp(os.path.getctime(self.getDataPath()))
return datetime.fromtimestamp(os.path.getmtime(self.getDataPath()))
return d
def setModified(self, value):
self.context._modified = value