- @handler(u'Set a DNS parameter')
- def set(self, param, value):
- r"set(param, value) -> None :: Set a DNS parameter."
- if not param in self.vars:
- raise ParameterNotFoundError(param)
- self.vars[param] = value
- self.mod = True
-
- @handler(u'Get a DNS parameter')
- def get(self, param):
- r"get(param) -> None :: Get a DNS parameter."
- if not param in self.vars:
- raise ParameterNotFoundError(param)
- return self.vars[param]
-
- @handler(u'List DNS parameters')
- def list(self):
- return self.vars.keys()
-
- @handler(u'Get all DNS parameters, with their values.')
- def show(self):
- return self.vars.values()
-