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