aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-12-20 14:42:01 -0500
committerAaron Bentley <abentley@panoramicfeedback.com>2005-12-20 14:42:01 -0500
commit5cf2118166a09e4bd98f44f4f9a484a47358f944 (patch)
treefe847d4c6d01670c48ddc528f08ca77ae98ac793
parente68bc9542b72042204f52df060ff3d7b31b06427 (diff)
downloadbugseverywhere-5cf2118166a09e4bd98f44f4f9a484a47358f944.tar.gz
Ensured bug.time is set
-rw-r--r--beweb/beweb/controllers.py7
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))