Пример #1
0
 def get(self, key):
     args = argparser.parse_args()
     cf = config.get_config()
     value = cf.get(key)
     if isinstance(value, config.Container):
         value = dict(value)
     return ["TODO get", key, cf.get(key)]
Пример #2
0
 def post(self, key):
     args = argparser.parse_args()
     cf = config.get_config()
     value = ast.literal_eval(args["value"])
     cf[key] = value
Пример #3
0
 def get(self):
     cf = config.get_config()
     return list(cf.keys())