def do_set(self, name, value): if settings.has_option(name): settings.set(name, value) else: self.sendLine("No such option %s" % name)
def do_get(self, name): # if name: if settings.has_option(name): self.sendLine("%s = %s" % (name, settings.get(name))) else: self.sendLine("No such option %s" % name)