Beispiel #1
0
def save_schedule_log(o):
    ctx = DBContext()
    ctx.save('cm_schedule_log', o)
Beispiel #2
0
def save_function(obj):
    UserFunctionCache.flush_all()
    assert isinstance(obj, dict)
    context = DBContext()
    context.save("um_function", obj)
Beispiel #3
0
def save_auth(auth):
    assert isinstance(auth, dict)
    context = DBContext()
    context.save("um_auth", auth)
Beispiel #4
0
def save_menu(menu):
    assert isinstance(menu, dict)
    context = DBContext()
    context.save("um_menu", menu)
    # clear my menu cache
    UserMenuCache.flush_all()