From 5cf2118166a09e4bd98f44f4f9a484a47358f944 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Tue, 20 Dec 2005 14:42:01 -0500 Subject: [PATCH] Ensured bug.time is set --- beweb/beweb/controllers.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/beweb/beweb/controllers.py b/beweb/beweb/controllers.py index 2fe3d3e..168d610 100644 --- a/beweb/beweb/controllers.py +++ b/beweb/beweb/controllers.py @@ -1,7 +1,7 @@ import turbogears from turbogears import controllers import cherrypy -from libbe.bugdir import tree_root, cmp_severity +from libbe.bugdir import tree_root, cmp_severity, new_bug from libbe import names from config import projects from restresource import RESTResource @@ -44,10 +44,7 @@ class Bug(RESTResource): } def new_bug(self): - bug = self.bug_tree().new_bug() - bug.creator = names.creator() - bug.severity = "minor" - bug.status = "open" + bug = new_bug(self.bug_tree()) bug.save() raise cherrypy.HTTPRedirect(bug_url(self.parent, bug.uuid)) -- 2.26.2