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


Python Account.perform_activation方法代码示例

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


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

示例1: next

# 需要导入模块: from account import Account [as 别名]
# 或者: from account.Account import perform_activation [as 别名]
if account.get_db() is None or account.get_db()['activated'] == False:
    
    logger.log_info("register account", "need to register this account first: ensure the mailserver is running")
    if account.get_db() is None:
        account.init_db(email, password, nation, proxies)
        account.load_db()
        action.action_register(account)
        jobs_from_db = False
    
    logger.log_info("wait for email", "wait for activation email to receive...")
    user_db = account.get_db()
    while 'activation_code' not in user_db:
        time.sleep(1)
        user_db = account.get_db()
    
    account.perform_activation("so")
    
account.loadup()

first_village = next(iter(account.villages.values()))

running = True

doc = account.request_GET("/dorf1.php")
#movements = reader.read_troop_movement_simple(doc)
#print(movements)
#sys.exit()

jm = JobManager(first_village)
first_village.event_handlers.append(jm)
if not jobs_from_db:
开发者ID:EyeOfPython,项目名称:EvilTravianBot,代码行数:33,代码来源:test.py


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