Ejemplo n.º 1
0
def delete_function(oid):
    if oid is not None:
        UserFunctionCache.flush_all()
        context = DBContext()
        context.delete_byid("um_function", oid)
        # delete related auth
        delete_auth_byidentity(oid, "UmFunction")
Ejemplo n.º 2
0
def delete_auth(oid):
    if oid is not None:
        context = DBContext()
        context.delete_byid("um_auth", oid)