コード例 #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)
コード例 #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)
コード例 #3
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)
コード例 #4
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)
コード例 #5
0
 def check_super(self, passwd):
     return check_super(passwd)
コード例 #6
0
ファイル: res_users.py プロジェクト: mbenyoub/server
 def check_super(self, passwd):
     return check_super(passwd)