Example #1
0
def new_common_dispatch(self, method, params):
    if method in ["get_running_requests"]:
        passwd = params[0]
        params = params[1:]
        security.check_super(passwd)
        return getattr(self, method)(*params)
    return native_common_dispatch(self, method, params)
Example #2
0
def new_db_dispatch(self, method, params):
    if method in ["get_missing_indexes", "get_unused_indexes", "get_duplicated_indexes"]:
        passwd = params[0]
        params = params[1:]
        security.check_super(passwd)
        return getattr(self, method)(*params)
    return native_db_dispatch(self, method, params)
def new_common_dispatch(self, method, params):
    if method in ['get_running_requests']:
        passwd = params[0]
        params = params[1:]
        security.check_super(passwd)
        return getattr(self, method)(*params)
    return native_common_dispatch(self, method, params)
def new_db_dispatch(self, method, params):
    if method in [
            'get_missing_indexes', 'get_unused_indexes',
            'get_duplicated_indexes'
    ]:
        passwd = params[0]
        params = params[1:]
        security.check_super(passwd)
        return getattr(self, method)(*params)
    return native_db_dispatch(self, method, params)
 def check_super(self, passwd):
     return check_super(passwd)
Example #6
0
 def check_super(self, passwd):
     return check_super(passwd)