本文整理汇总了Python中WebCommonUtils.get_issue_types方法的典型用法代码示例。如果您正苦于以下问题:Python WebCommonUtils.get_issue_types方法的具体用法?Python WebCommonUtils.get_issue_types怎么用?Python WebCommonUtils.get_issue_types使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebCommonUtils
的用法示例。
在下文中一共展示了WebCommonUtils.get_issue_types方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: init_issue_tracker
# 需要导入模块: import WebCommonUtils [as 别名]
# 或者: from WebCommonUtils import get_issue_types [as 别名]
def init_issue_tracker():
global issueform
global new_issueform
global commentform
issue_platforms = WebCommonUtils.get_issue_types()
issueform = pureform(
form.Textbox(issue_id_label, size=20),
form.Dropdown(issue_platform_label, issue_platforms),
form.Textbox(issue_summary_label, size=60),
form.Dropdown(issue_status_label, issue_statuses),
form.Dropdown(issue_priority_label, issue_priorities),
form.Dropdown(issue_subgroup_label, issue_subgroups),
form.Dropdown(issue_component_label, issue_components),
form.Dropdown(issue_owner_label, issue_username_list),
form.Dropdown(issue_submitter_label, issue_username_list),
form.Textarea(issue_description_label, size=1024),
form.Textarea(issue_comment_label, size=1024))
new_issueform = pureform(
form.Dropdown(issue_platform_label, issue_platforms),
form.Textbox(issue_summary_label, size=60),
form.Dropdown(issue_status_label, issue_statuses),
form.Dropdown(issue_priority_label, issue_priorities),
form.Dropdown(issue_subgroup_label, issue_subgroups),
form.Dropdown(issue_component_label, issue_components),
form.Dropdown(issue_owner_label, issue_username_list),
form.Dropdown(issue_submitter_label, issue_username_list),
form.Textarea(issue_description_label, size=1024))
commentform = pureform(
form.Textarea(issue_comment_label, size=1024))