def __init__(self, node=1, path_id=1): self.node = node Base.__init__(self, node=self.node, path_id=path_id) self.node_o = 2 if self.node == 1 else 1 # self.fh = FileHandle(node=self.node) # 本端数据库 self.con_n = sql(node=self.node)
def __init__(self, node=1, path_id=2): """ @:param node 1: hongkong other:bulisiban @:param p_id path id """ Base.__init__(self, node=node, path_id=path_id) pass
def __init__(self, node=1, path_id=1): self.node = node self.s = sql(node=node) Base.__init__(self, node=node, path_id=path_id) # file 文件目录 self.file_path = os.path.join( os.path.realpath(os.path.dirname(os.path.dirname(__file__))), 'data') Log.info('上传文件所在目录:{}'.format(self.file_path))
def __init__(self, node=1, path_id=1): """ @:param node 1: hongkong other:bulisiban @:param p_id path id """ # self.headers = {'Content-Type': 'application/json;charset=UTF-8'} self.path_id = path_id Base.__init__(self, node=node, path_id=path_id) # Log.info('login url is %s' % self.url) pass
def __init__(self, node=1, path_id=1): self.node = node Base.__init__(self, node=self.node, path_id=path_id) self.node_o = 2 if self.node == 1 else 1 # 本端数据库 self.con_n = sql(node=self.node) # 对端数据库 self.con_o = sql(node=self.node_o)
def __init__(self, node=1, path_id=1): """ @:param node 1: hongkong other:bulisiban @:param p_id path id """ self.node = node # self.cookies = Login(node=node, path_id=1).get_cookie() self.s = sql(node=node) Base.__init__(self, node=node, path_id=path_id) pass
def __init__(self, node=1, path_id=1): self.node = node Base.__init__(self, node=self.node, path_id=path_id) self.node_o = 2 if self.node == 1 else 1 # 文件上传接口para id self.upload_para_id = 10 # gwas 文件类型 3 self.fileType = 3 self.fh = FileHandle(node=self.node) # 本端数据库 self.con_n = sql(node=self.node) # 对端数据库 self.con_o = sql(node=self.node_o)