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:
helmutm 2009-02-15 11:26:20 +00:00
parent 40374f238d
commit a4c59211ca

View file

@ -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):