Logo Search packages:      
Sourcecode: audit version File versions  Download package

def rule_table::RuleTable::_row_set_action (   self,
  it,
  column,
  rule 
) [private]

Set column column in it to the action of rule.

Definition at line 145 of file rule_table.py.

00145                                                :
        '''Set column column in it to the action of rule.'''
        if rule.action == Rule.ACTION_ALWAYS:
            text = _(self._action_labels[0])
        elif rule.action == Rule.ACTION_NEVER:
            text = _(self._action_labels[1])
        else:
            assert False, 'Unknown rule action %s' % rule.action
        self.store.set_value(it, column, text)

    def __selection_changed(self, *_):


Generated by  Doxygen 1.6.0   Back to index