def modified(self): """Provide a callable to return the modification time of content items. So stored image scales can be invalidated. """ dc = IZopeDublinCore(self.context) return dc.ModificationDate()
def modified(self): """Provide a callable to return the modification time of content items. So stored image scales can be invalidated. """ unecure_context = removeSecurityProxy(self.context.context) # dc = IZopeDublinCore(self.context.context) dc = IZopeDublinCore(unecure_context) return dc.ModificationDate()