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