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:
		
							parent
							
								
									7294bc122b
								
							
						
					
					
						commit
						40374f238d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -94,7 +94,7 @@ class MediaAsset(MediaAssetFile, ExternalFileAdapter): | ||||||
|     def getModified(self): |     def getModified(self): | ||||||
|         d = getattr(self.context, '_modified', None) |         d = getattr(self.context, '_modified', None) | ||||||
|         if d is None: |         if d is None: | ||||||
|             return datetime.fromtimestamp(os.path.getctime(self.getDataPath())) |             return datetime.fromtimestamp(os.path.getmtime(self.getDataPath())) | ||||||
|         return d |         return d | ||||||
|     def setModified(self, value): |     def setModified(self, value): | ||||||
|         self.context._modified = value |         self.context._modified = value | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm