Exemple #1
0
 def __init__(self, window):
     edit = EditNAT(window, self)
     model = NatRulesModel(window)
     RulesList.__init__(self, window, model, window.table_nats, "nats", "nat", edit)
     self.filter = NatFilter(self)
     self.window.nat_wizard_button.connect(self.window.nat_wizard_button, SIGNAL('clicked()'), self.showWizard)
     self.table.connect(self.table, SIGNAL('cellClicked(int, int)'), self.setButtonsEnabled)
Exemple #2
0
    def __init__(self, window, model, table, widget_prefix):
        edit = window.edit_acl
        RulesList.__init__(self, window, model, table, model.rule_type, widget_prefix, edit)
        self.filter = AclFilter(self)

        config = self.window.config
        config.update_callbacks.append(self.updateConfig)
Exemple #3
0
 def setReadOnly(self, read_only):
     RulesList.setReadOnly(self, read_only)
     button = self.getButton("wizard")
     if read_only:
         button.hide()
     else:
         button.show()