Пример #1
0
 def set_global(global_key, global_value):
     var = global_wrapper(remote_base_url, global_key)
     if var:
         var.value = global_value
         return var.write()
     else:
         return None
Пример #2
0
 def global_wrapper(global_key):
     return global_wrapper(remote_base_url, global_key)
Пример #3
0
 def get_global(global_key):
     var = global_wrapper(remote_base_url, global_key)
     if var:
         return var.value
     return
Пример #4
0
 def get_global(global_key):
     var = global_wrapper(remote_base_url, global_key)
     return var.value if var else None