handle FlareContentListingObject modified attribute
This commit is contained in:
parent
8516ab9e5c
commit
d36cb6f360
|
@ -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)
|
||||
|
|
Reference in New Issue