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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Read or write nameservers to config file.

Pass None to parameter config (as default) to read config,
or pass a dict type to config to write config.

src/m/o/MoleSys-HEAD/lib/serverM/mate/web.py   MoleSys(Download)
            if ifconfig != None: self.write(ifconfig)
        elif sec == 'nameservers':
            self.write({'nameservers': sc.Server.nameservers()})
    def post(self, sec, ifname):
            if sc.Server.nameservers(nameservers):
                self.write({'code': 0, 'msg': u'DNS设置保存成功!'})