本文整理汇总了Python中models.Account.undestroy方法的典型用法代码示例。如果您正苦于以下问题:Python Account.undestroy方法的具体用法?Python Account.undestroy怎么用?Python Account.undestroy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类models.Account
的用法示例。
在下文中一共展示了Account.undestroy方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: process_uid
# 需要导入模块: from models import Account [as 别名]
# 或者: from models.Account import undestroy [as 别名]
if args.xpub != '':
xpub.set(args.xpub)
if args.test_uid_create_node != '':
#uid = process_uid(args.test_uid_create_node)
uid = args.test_uid_create_node.encode() # do not process as this is probably only going to be an admin-for-user type action.
account = Account(uid)
account.node_created.set(False)
#account.unconf_minutes.incr(MIN_TIME + 1)
nodes_recently_updated.prepend(uid)
process_next_creation()
if args.undestroy_and_recreate != '':
uid = args.undestroy_and_recreate.encode()
account = Account(uid)
account.undestroy()
nodes_recently_updated.prepend(uid)
process_next_creation()
if args.msgs_for_uid != '':
print(Account(process_uid(args.msgs_for_uid)).get_msgs(100000))
if args.configure_droplet != '':
droplets_to_configure.add(args.configure_droplet, 0)
configure_droplet(args.configure_droplet)
if args.create_startup_script != '':
raise Exception('Unimplemented')
if args.show_account != '':
uids = [args.show_account.encode(), process_uid(args.show_account)]