Esempio n. 1
0
 def do_set(self, name, value):
     if settings.has_option(name):
         settings.set(name, value)
     else:
         self.sendLine("No such option %s" % name)
Esempio n. 2
0
 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)