当前位置: 首页>>代码示例>>Python>>正文


Python TacticServerStub.get_login方法代码示例

本文整理汇总了Python中tactic_client_lib.TacticServerStub.get_login方法的典型用法代码示例。如果您正苦于以下问题:Python TacticServerStub.get_login方法的具体用法?Python TacticServerStub.get_login怎么用?Python TacticServerStub.get_login使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tactic_client_lib.TacticServerStub的用法示例。


在下文中一共展示了TacticServerStub.get_login方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: TacticServerStub

# 需要导入模块: from tactic_client_lib import TacticServerStub [as 别名]
# 或者: from tactic_client_lib.TacticServerStub import get_login [as 别名]
''' Toda parte de configuracao de servidor '''

		projeto_name = 'xxxx'
		ip_sever     = 'xxx.xxx.x.xx'

		if projeto_name:
			server = TacticServerStub()
			server.set_server(ip_sever)
			server.set_project(projeto_name)
			print 'OK server'
		else:
			print 'server down'

		search_type = projeto_name + '/shot'
		print 'USER LOGIN: %s' % (server.get_login())
		print server.build_search_type(search_type)

''' Inicializando a busca por arquvos '''

		# self.nameSnapshots()

	def converter_jpg(self, path):
		# Vai converter todas as imagens que forem necessarias.
		converter(path)

	def nameSnapshots(self):
		for index, itens in enumerate(self.paths):
			# Code recebe o nome que vai ser colocado no snapshot.
			self.listNameSnapshots.append({ 'code': '', 'description' : itens })	
			if os.listdir(itens):
开发者ID:ernandedante,项目名称:tactic,代码行数:32,代码来源:connect_up_command.py


注:本文中的tactic_client_lib.TacticServerStub.get_login方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。