本文整理匯總了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))