def columns(self): return [ descriptor.user_name_column("user_id", _("user"), "user"), column.GetterColumn(title="action date", getter=lambda i,f: self.date_formatter.format(i.date_active)), column.GetterColumn(title="action", getter=lambda i,f: "%s / %s" % (_get_type_name(i), i.action)), GetterColumn(title="description", getter=lambda i,f: _format_description(i)), column.GetterColumn(title="audit date", getter=lambda i,f: self.date_formatter.format(i.date_audit)), ]
def columns(self): return [ descriptor.user_name_column("user_id", _("user"), "user"), column.GetterColumn(title="action date", getter=lambda i,f: self.date_formatter.format(i.date_active)), column.GetterColumn(title="action", getter=lambda i,f: "%s / %s" % (get_auditable_type_key(i), i.action)), GetterColumn(title="description", getter=lambda i,f: format_description(i, self.head)), column.GetterColumn(title="note", getter=lambda i,f: i.note and translate(i.note) or ""), column.GetterColumn(title="audit date", getter=lambda i,f: self.date_formatter.format(i.date_audit)), ]
def columns(self): return [ descriptor.user_name_column("user_id", _("user"), "user"), column.GetterColumn( title="action date", getter=lambda i, f: self.date_formatter.format(i.date_active)), column.GetterColumn(title="action", getter=lambda i, f: "%s / %s" % (get_auditable_type_key(i), i.action)), GetterColumn(title="description", getter=lambda i, f: format_description(i, self.head)), column.GetterColumn( title="note", getter=lambda i, f: i.note and translate(i.note) or ""), column.GetterColumn( title="audit date", getter=lambda i, f: self.date_formatter.format(i.date_audit)), ]