コード例 #1
0
 def __init__(self, username, password, envConf, global_cache):
     self.cache = global_cache
     self.username = username
     self.password = password
     self.header = envConf["headers"]["soap_header"]
     self.lubansoftLogin = base_requests.Send(envConf["lubansoft"]['host'],
                                              envConf)
コード例 #2
0
 def __init__(self, username, password, envConf, global_cache):
     self.cache = global_cache
     self.username = username
     self.password = password
     self.BussinessLogin = base_requests.Send(envConf["Bussiness"]['host'],
                                              envConf,
                                              global_cache=self.cache)
コード例 #3
0
def bimco(iworks_app_cas, env_conf, global_cache):
    '''
    获取BimCO登录凭证
    :return:
    '''
    BimCO = base_requests.Send(global_cache.get("bimco", False), env_conf,
                               global_cache)
    yield BimCO
コード例 #4
0
def lbbv(iworks_app_cas, env_conf, global_cache):
    '''
    获取LBBV登录凭证
    :return:
    '''
    LBBV = base_requests.Send(global_cache.get("lbbv", False), env_conf,
                              global_cache)
    yield LBBV
コード例 #5
0
def center_process(center_cas, env_conf, global_cache):
    '''
    获取Process登录凭证
    :return:
    '''
    CenterProcess = base_requests.Send(global_cache.get("process", False),
                                       env_conf, global_cache)
    yield CenterProcess
コード例 #6
0
def center_builder(center_cas, env_conf, global_cache):
    '''
    获取Builder登录凭证
    :return:
    '''
    CenterBuilder = base_requests.Send(global_cache.get("builder", False),
                                       env_conf, global_cache)
    yield CenterBuilder
コード例 #7
0
def pds_common(iworks_app_cas, env_conf, global_cache):
    '''
    获取PDSCommon登录凭证
    :return:
    '''
    PDSCommon = base_requests.Send(global_cache.get("pdscommon", False),
                                   env_conf, global_cache)
    yield PDSCommon
コード例 #8
0
def pds_doc(iworks_app_cas, env_conf, global_cache):
    '''
    获取pdsdoc登录凭证
    :return:
    '''
    PDSDoc = base_requests.Send(global_cache.get("pdsdoc", False), env_conf,
                                global_cache)
    yield PDSDoc
コード例 #9
0
 def __init__(self, apikey, apisecret, envConf, global_cache):
     self.cache = global_cache
     self.apikey = apikey
     self.apisecret = apisecret
     self.username = envConf["openapi"]['username']
     self.OpenAPIToken = base_requests.Send(envConf["openapi"]['host'],
                                            envConf,
                                            global_cache=self.cache)
コード例 #10
0
def process(iworks_app_cas, env_conf, global_cache):
    '''
    获取Process登录凭证
    :return:
    '''
    Process = base_requests.Send(global_cache.get("lbprocess", False),
                                 env_conf, global_cache)
    yield Process
コード例 #11
0
 def __init__(self, username, password, envConf, global_cache):
     self.cache = global_cache
     self.username = username
     self.password = password
     self.header = envConf["headers"]["json_header"]
     self.GaoluLogin = base_requests.Send(envConf["pds_luban"],
                                          envConf,
                                          global_cache=self.cache)
コード例 #12
0
 def __init__(self, username, password, envConf, global_cache):
     self.cache = global_cache
     self.username = base_utils.ToBase64(username)
     self.password = password
     self.token = ''
     self.AcAddress = ''
     self.BimappLogin = base_requests.Send(envConf["bimapp"]['host'],
                                           envConf,
                                           global_cache=self.cache)
コード例 #13
0
def builder_common_business_data(iworks_app_cas, env_conf, global_cache):
    '''
    获取BusinessData登录凭证
    :return:
    '''
    builderCommonBusinessData = base_requests.Send(
        global_cache.get("buildercommonbusinessdata", False), env_conf,
        global_cache)
    yield builderCommonBusinessData
コード例 #14
0
 def __init__(self, centerusername, centerpassword, envConf, global_cache):
     self.cache = global_cache
     self.productId = envConf['centerProductid']
     self.username = centerusername if isinstance(
         centerusername, int) else quote(centerusername)
     self.password = centerpassword
     self.header = envConf["headers"]["plain_header"]
     self.CenterLogin = base_requests.Send(envConf['pds'],
                                           envConf,
                                           global_cache=self.cache)
コード例 #15
0
 def __init__(self, username, password, envConf, global_cache):
     self.cache = global_cache
     self.productId = envConf['iworksWebProductId']
     self.username = username
     self.password = password
     self.header = envConf["headers"]["json_header"]
     self.casLogin = base_requests.Send(envConf['pds'],
                                        envConf,
                                        global_cache=self.cache)
     self.epid = ''
コード例 #16
0
def iworks_web_pdsdoc(iworks_web_cas, env_conf, global_cache):
    '''
    获取doc登录凭证
    :return:
    '''
    resule = base_requests.Send(global_cache.get("pdsdoc", False), env_conf,
                                global_cache)
    # 处理第一次 302跳转接口不能是post、put、update接口,必须用get接口调用
    Jump().jump(resule, resource='/rs/jump')
    yield resule
コード例 #17
0
def iworks_web_businessdata(iworks_web_cas, env_conf, global_cache):
    '''
    获取businessdata登录凭证
    :return:
    '''
    resule = base_requests.Send(
        global_cache.get("BuilderCommonBusinessdata", False), env_conf,
        global_cache)
    # 处理第一次 302跳转接口不能是post、put、update接口,必须用get接口调用
    Jump().jump(resule, resource='/jump')
    yield resule
コード例 #18
0
 def __init__(self, username, password, envConf, global_cache):
     self.cache = global_cache
     self.productId = envConf['iworksAppProductId']
     self.username = username if isinstance(username,
                                            int) else quote(username)
     self.password = password
     self.header = envConf["headers"]["plain_header"]
     self.clientVersion = envConf["iworksApp"]["clientVersion"]
     self.casLogin = base_requests.Send(envConf['pds'],
                                        envConf,
                                        global_cache=self.cache)
     self.epid = ''
コード例 #19
0
 def __init__(self, username, password, envConf, global_cache):
     self.cache = global_cache
     # self.rf = ManageConfig().getConfig(self.section)
     # self.wf = ManageConfig()
     self.productId = envConf['iWorksProductId']
     self.username = username if isinstance(username,
                                            int) else quote(username)
     self.password = password
     self.header = envConf["headers"]["soap_header"]
     self.header1 = envConf["headers"]["urlencoded_header"]
     self.casLogin = base_requests.Send(envConf['pds'],
                                        envConf,
                                        global_cache=self.cache)
     self.epid = ''
コード例 #20
0
 def __init__(self, username, password, envConf, global_cache):
     self.cache = global_cache
     self.username = username
     self.password = password
     self.MylubanWebLogin = base_requests.Send(
         envConf["MylubanWeb"]['host'], envConf, global_cache=self.cache)
コード例 #21
0
 def __init__(self, envConf):
     self.header = envConf["headers"]["urlencoded_header"]
     self.body = envConf["sysadmin"]["logininfo"]
     self.BimAdminLogin = base_requests.Send(envConf["sysadmin"]["host"],
                                             envConf)