diff --git a/entities.py b/entities.py index 44a35ca8eda2f651f3e48243458dac94c0b34296_ZW50aXRpZXMucHk=..d481b1bd5dacbf07b129eaf4a1b93da07c13cc32_ZW50aXRpZXMucHk= 100644 --- a/entities.py +++ b/entities.py @@ -51,6 +51,10 @@ def dc_description(self, format='text/plain'): return self.printable_value('content', format=format) + def dc_date(self, date_format=None):# XXX default to ISO 8601 ? + """return latest modification date of this entity""" + return self._cw.format_date(self.creation_date, date_format=date_format) + def parent(self): return self.entry_of and self.entry_of[0] or None