def __update_rule_keys(self): '''Update text in self.rule_keys''' if len(self.keys) != 0: self.rule_keys.set_text(util.keys_string(self.keys)) else: self.rule_keys.set_markup('<i>%s</i>' % _('No key'))
def _row_set_filter_key(self, it, column, rule): '''Set column column in it to the key of rule.''' keys = (field.value for field in rule.fields if field.var == audit.AUDIT_FILTERKEY) self.store.set_value(it, column, util.keys_string(keys))
def __update_watch_keys(self): '''Update self.watch_keys text.''' if len(self.keys) != 0: self.watch_keys.set_text(util.keys_string(self.keys)) else: self.watch_keys.set_markup('<i>%s</i>' % _('No key'))