handle FlareContentListingObject modified attribute

This commit is contained in:
Frédéric Péters 2018-11-25 14:08:27 +01:00
parent 8516ab9e5c
commit d36cb6f360
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,10 @@ class Column(z3c.table.column.Column, grok.MultiAdapter):
def _get_value_cachekey(method, request, item, attribute, default=None):
return (item.getPath(), item.modified, attribute, default)
if hasattr(item, 'modified'):
return (item.getPath(), item.modified, attribute, default)
else:
return (item.getPath(), item.ModificationDate(), attribute, default)
@ram.cache(_get_value_cachekey)