def status_change_date(self): """Show date of last status change. Says nothing at all if the entry's status has not changed since upload. """ change_date = self.context.date_status_changed if change_date == self.context.dateimported: return "" else: formatter = DateTimeFormatterAPI(change_date) return "Last changed %s." % formatter.displaydate()
def status_change_date(self): """Show date of last status change. Says nothing at all if the entry's status has not changed since upload. """ change_date = self.context.date_status_changed if change_date == self.context.dateimported: return "" else: formatter = DateTimeFormatterAPI(change_date) return "Last changed %s." % formatter.displaydate()