From 43b0a51403b4698903783377450690972fe7bc70 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Thu, 29 Dec 2005 10:14:32 -0500 Subject: Removed debugging code --- beweb/beweb/prest.py | 1 - 1 file changed, 1 deletion(-) (limited to 'beweb') diff --git a/beweb/beweb/prest.py b/beweb/beweb/prest.py index 7de1290..e6b7cdf 100644 --- a/beweb/beweb/prest.py +++ b/beweb/beweb/prest.py @@ -56,7 +56,6 @@ class PrestHandler(object): if action is not None: return action(*new_args, **kwargs) else: - print child.__class__.__name__ return child.dispatch(*new_args, **kwargs) def get_action(self, **kwargs): -- cgit From bb1b72847742ebe56682b0f7f2bd5a3d8037fc4b Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Mon, 2 Jan 2006 14:01:48 -0500 Subject: Fixed tense --- beweb/beweb/templates/about.kid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'beweb') diff --git a/beweb/beweb/templates/about.kid b/beweb/beweb/templates/about.kid index 212bc1d..45d0093 100644 --- a/beweb/beweb/templates/about.kid +++ b/beweb/beweb/templates/about.kid @@ -12,7 +12,7 @@ Bentley and Oleg Romanyshyn.

- Development was sponsored by + Development is sponsored by Panoramic Feedback.

-- cgit From 74df8a9003736ca76dee3b94433edd4e9e04dbc3 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Mon, 2 Jan 2006 15:53:32 -0500 Subject: Added assignment of bugs to people to web UI --- beweb/beweb/controllers.py | 6 +++++- beweb/beweb/templates/bugs.kid | 3 ++- beweb/beweb/templates/edit_bug.kid | 21 ++++++++++++++++++--- 3 files changed, 25 insertions(+), 5 deletions(-) (limited to 'beweb') diff --git a/beweb/beweb/controllers.py b/beweb/beweb/controllers.py index b0f13db..cbd0816 100644 --- a/beweb/beweb/controllers.py +++ b/beweb/beweb/controllers.py @@ -84,10 +84,14 @@ class Bug(PrestHandler): raise cherrypy.HTTPRedirect(bug_url(bug_data['project'], bug.uuid)) @provide_action("action", "Update") - def update(self, bug_data, bug, status, severity, summary, action): + def update(self, bug_data, bug, status, severity, summary, assigned, + action): bug.status = status bug.severity = severity bug.summary = summary + if assigned == "": + assigned = None + bug.assigned = assigned bug.save() raise cherrypy.HTTPRedirect(bug_list_url(bug_data["project"])) diff --git a/beweb/beweb/templates/bugs.kid b/beweb/beweb/templates/bugs.kid index b8b2ff7..07d8dee 100644 --- a/beweb/beweb/templates/bugs.kid +++ b/beweb/beweb/templates/bugs.kid @@ -2,6 +2,7 @@ Bug list for ${project_name} -
+
IDStatusSeverityAssigned ToSummary
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${bug.assigned}${bug.summary}
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${people.get(bug.assigned, bug.assigned)}${bug.summary}
Project list diff --git a/beweb/beweb/templates/edit_bug.kid b/beweb/beweb/templates/edit_bug.kid index 49dbe52..57f1940 100644 --- a/beweb/beweb/templates/edit_bug.kid +++ b/beweb/beweb/templates/edit_bug.kid @@ -3,14 +3,28 @@ from libbe.bugdir import severity_levels from libbe.utility import time_to_str from beweb.controllers import bug_list_url, comment_url -def select_among(name, options, default): +from beweb.config import people +def select_among(name, options, default, display_names=None): output = ['") return XML("".join(output)) ?> @@ -27,7 +41,8 @@ def select_among(name, options, default):

- + +
StatusSeverityAssigned ToSummary
${select_among("status", ["open", "closed", "in-progress"], bug.status)}${select_among("severity", severity_levels, bug.severity)}${bug.assigned}
${select_among("status", ["open", "closed", "in-progress"], bug.status)}${select_among("severity", severity_levels, bug.severity)}${select_among("assigned", people.keys()+[None], bug.assigned, people)}
-- cgit From 427e95ba1074f3d2f48c1cef32e454d6bcd5466a Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Wed, 25 Jan 2006 17:00:13 -0500 Subject: Added more possible bug statuses --- beweb/beweb/templates/edit_bug.kid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'beweb') diff --git a/beweb/beweb/templates/edit_bug.kid b/beweb/beweb/templates/edit_bug.kid index 57f1940..89c4208 100644 --- a/beweb/beweb/templates/edit_bug.kid +++ b/beweb/beweb/templates/edit_bug.kid @@ -1,6 +1,6 @@ - +
StatusSeverityAssigned ToSummary
${select_among("status", ["open", "closed", "in-progress"], bug.status)}${select_among("severity", severity_levels, bug.severity)}
${select_among("status", active_status+inactive_status, bug.status)}${select_among("severity", severity_levels, bug.severity)} ${select_among("assigned", people.keys()+[None], bug.assigned, people)}
-- cgit From 41a97f69328e788001d32b1f1dd378eaf536eed4 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Wed, 25 Jan 2006 17:04:26 -0500 Subject: Updated web UI display of inactive bugs --- beweb/beweb/templates/bugs.kid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'beweb') diff --git a/beweb/beweb/templates/bugs.kid b/beweb/beweb/templates/bugs.kid index 07d8dee..c174d00 100644 --- a/beweb/beweb/templates/bugs.kid +++ b/beweb/beweb/templates/bugs.kid @@ -4,7 +4,7 @@ from libbe.cmdutil import unique_name from beweb.controllers import bug_url, project_url, bug_list_url from beweb.config import people def row_class(bug): - if bug.status == "closed": + if not bug.active is True: return "closed" else: return "" @@ -21,7 +21,7 @@ def row_class(bug):

Bug list for ${project_name}

-
+
IDStatusSeverityAssigned ToSummary
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${people.get(bug.assigned, bug.assigned)}${bug.summary}
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${people.get(bug.assigned, bug.assigned)}${bug.summary}
Project list -- cgit From 4eb3e0d84a15aabbf723fe9b3696dfc81efd9bb0 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Wed, 25 Jan 2006 17:13:06 -0500 Subject: Show number of comments in bug list --- beweb/beweb/templates/bugs.kid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'beweb') diff --git a/beweb/beweb/templates/bugs.kid b/beweb/beweb/templates/bugs.kid index c174d00..30004fc 100644 --- a/beweb/beweb/templates/bugs.kid +++ b/beweb/beweb/templates/bugs.kid @@ -20,8 +20,8 @@ def row_class(bug):

Bug list for ${project_name}

- -
+ +
IDStatusSeverityAssigned ToSummary
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${people.get(bug.assigned, bug.assigned)}${bug.summary}
IDStatusSeverityAssigned ToCommentsSummary
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${people.get(bug.assigned, bug.assigned)}${len(list(bug.iter_comment_ids()))}${bug.summary}
Project list -- cgit