diff options
author | W. Trevor King <wking@drexel.edu> | 2008-11-19 08:05:17 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2008-11-19 08:05:17 -0500 |
commit | 3697d561fef7f4ee15a6b4d9906a9a9114412965 (patch) | |
tree | def98f80a57c5cc0dfd7d3c79500800376684cb6 /Bugs-Everywhere-Web/beweb/controllers.py | |
parent | 35b7aaa33c1826d7b39dc8a0f32100f5c0c5788d (diff) | |
download | bugseverywhere-3697d561fef7f4ee15a6b4d9906a9a9114412965.tar.gz |
Merged bug.new_comment into bug.Bug.new_comment.
Diffstat (limited to 'Bugs-Everywhere-Web/beweb/controllers.py')
-rw-r--r-- | Bugs-Everywhere-Web/beweb/controllers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugs-Everywhere-Web/beweb/controllers.py b/Bugs-Everywhere-Web/beweb/controllers.py index 6773aec..393f105 100644 --- a/Bugs-Everywhere-Web/beweb/controllers.py +++ b/Bugs-Everywhere-Web/beweb/controllers.py @@ -4,7 +4,7 @@ import cherrypy import turbogears from turbogears import controllers, expose, validate, redirect, identity -from libbe.bugdir import tree_root, new_bug, new_comment, NoRootEntry +from libbe.bugdir import tree_root, new_comment, NoRootEntry from config import projects from prest import PrestHandler, provide_action @@ -103,7 +103,7 @@ class Bug(PrestHandler): @identity.require( identity.has_permission("editbugs")) @provide_action("action", "New bug") def new_bug(self, bug_data, bug, **kwargs): - bug = new_bug(project_tree(bug_data['project'])) + bug = project_tree(bug_data['project']).new_bug() bug.creator = identity.current.user.userId bug.save() raise cherrypy.HTTPRedirect(bug_url(bug_data['project'], bug.uuid)) |