Esempio n. 1
0
 def do_set(self, line):
     parsed = line.split('=', 1)
     if len(parsed) < 2:
         logger.error("setting value format is 'key=value'!")
         return
     key = parsed[0]
     value = parsed[1]
     cfg.set(key, value)
Esempio n. 2
0
 def do_set(self, line):
     """
     handle dynamic settings (key-value pairs)
     """
     parsed = line.split('=', 1)
     if len(parsed) < 2:
         logger.error("setting value format is 'key=value'!")
         return
     key = parsed[0]
     value = parsed[1]
     cfg.set(key, value)