本文整理汇总了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):