本文整理汇总了Python中model.Document.get_actionable方法的典型用法代码示例。如果您正苦于以下问题:Python Document.get_actionable方法的具体用法?Python Document.get_actionable怎么用?Python Document.get_actionable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类model.Document
的用法示例。
在下文中一共展示了Document.get_actionable方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get
# 需要导入模块: from model import Document [as 别名]
# 或者: from model.Document import get_actionable [as 别名]
def get(self):
actionable = Document.get_actionable()
for d in actionable:
ret = d.blockchain_certify()
subject = "Document certified: %s %s" % (ret['success'], d.digest)
body = subject + "\n\nmesage: %s" % (ret['message'])
示例2: get
# 需要导入模块: from model import Document [as 别名]
# 或者: from model.Document import get_actionable [as 别名]
def get(self):
actionable = Document.get_actionable()
for d in actionable:
ret = d.blockchain_certify()
sender_address = "[email protected]"
subject = "Document certified: %s %s" % (ret['success'], d.digest)
body = subject + "\n\nmesage: %s" % (ret['message'])
mail.send_mail(sender_address, ADMIN_EMAIL, subject, body)
示例3: get
# 需要导入模块: from model import Document [as 别名]
# 或者: from model.Document import get_actionable [as 别名]
def get(self):
actionable = Document.get_actionable()
url = SECRET_ADMIN_PATH + '/autopay'
for d in actionable:
self.response.write('<a href="%s?d=%s">%s</a><br /><br />' % (url, d.digest, d.digest))