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)
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)
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
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
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
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
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
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
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)
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
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)
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)
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
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)
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 = ''
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
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
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 = ''
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 = ''
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)
def __init__(self, envConf): self.header = envConf["headers"]["urlencoded_header"] self.body = envConf["sysadmin"]["logininfo"] self.BimAdminLogin = base_requests.Send(envConf["sysadmin"]["host"], envConf)