Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1firewallpolicy.py   karesansui(Download)
        else:
            self.view.have_config = True
            kit.firewall_xml = kit.read_firewall_xml()
 
            for chain in kit.basic_chains['filter']:
 
        kit = KaresansuiIpTables()
        kit.firewall_xml = kit.read_firewall_xml()
 
        if not validates_policy(self):

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1firewall.py   karesansui(Download)
            self.view.have_config = False
        else:
            kit.firewall_xml = kit.read_firewall_xml()
            # --
            self.view.iptables = Storage(
 
        kit = KaresansuiIpTables()
        kit.firewall_xml = kit.read_firewall_xml()
 
        rule_info = {"target" : self.input.target,

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1firewallruleby1.py   karesansui(Download)
 
        kit = KaresansuiIpTables()
        kit.firewall_xml = kit.read_firewall_xml()
 
        rules = kit.get_rules()
 
        kit = KaresansuiIpTables()
        kit.firewall_xml = kit.read_firewall_xml()
 
        rule_info = {"target" : self.input.target,
 
        kit = KaresansuiIpTables()
        kit.firewall_xml = kit.read_firewall_xml()
        kit.delete_rule(int(rule_id))
        kit.write_firewall_xml()

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1firewallrule.py   karesansui(Download)
            checker.add_error(_('Has not been initialized. Please initialize.'))
        else:
            kit.firewall_xml = kit.read_firewall_xml()
            rule_id_max_length += len(kit.get_rules())
 
 
        else:
            kit.firewall_xml = kit.read_firewall_xml()
            self.view.base_policy = 'ACCEPT'
            self.view.rules = kit.get_rules()

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1firewallstatus.py   karesansui(Download)
            ret = firewall_save(self, model)
        elif status & FIREWALL_ACTION_STOP and status & FIREWALL_ACTION_START:
            kit.firewall_xml = kit.read_firewall_xml()
            ret = firewall_restore(self, model, 'restart')
 
        elif status & FIREWALL_ACTION_STOP:
            kit.firewall_xml = kit.read_firewall_xml()
 
        elif status & FIREWALL_ACTION_START:
            kit.firewall_xml = kit.read_firewall_xml()
            ret = firewall_restore(self, model, 'start')