diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-12-20 14:42:01 -0500 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-12-20 14:42:01 -0500 |
commit | 5cf2118166a09e4bd98f44f4f9a484a47358f944 (patch) | |
tree | fe847d4c6d01670c48ddc528f08ca77ae98ac793 /beweb | |
parent | e68bc9542b72042204f52df060ff3d7b31b06427 (diff) | |
download | bugseverywhere-5cf2118166a09e4bd98f44f4f9a484a47358f944.tar.gz |
Ensured bug.time is set
Diffstat (limited to 'beweb')
-rw-r--r-- | beweb/beweb/controllers.py | 7 |
1 files 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)) |