本文整理汇总了Python中vilya.models.project_issue.ProjectIssue.get_by_issue_id方法的典型用法代码示例。如果您正苦于以下问题:Python ProjectIssue.get_by_issue_id方法的具体用法?Python ProjectIssue.get_by_issue_id怎么用?Python ProjectIssue.get_by_issue_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vilya.models.project_issue.ProjectIssue
的用法示例。
在下文中一共展示了ProjectIssue.get_by_issue_id方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from vilya.models.project_issue import ProjectIssue [as 别名]
# 或者: from vilya.models.project_issue.ProjectIssue import get_by_issue_id [as 别名]
def __init__(self, issue_id, description, hl_description):
self.issue = ProjectIssue.get_by_issue_id(issue_id) \
if issue_id else None
if self.issue and self.issue.description:
description = self.issue.description
self.description = description
self.hl_description = hl_description or description
示例2: _get_closed_multi
# 需要导入模块: from vilya.models.project_issue import ProjectIssue [as 别名]
# 或者: from vilya.models.project_issue.ProjectIssue import get_by_issue_id [as 别名]
def _get_closed_multi(self):
milestone = self.milestone
tasks = []
rs = IssueMilestone.gets_by(milestone_id=milestone.id)
for r in rs:
issue = ProjectIssue.get_by_issue_id(r.issue_id)
if not issue:
continue
if issue.closer_id:
tasks.append(r)
return tasks