aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb/controllers.py
diff options
context:
space:
mode:
authorAaron Bentley <aaron.bentley@utoronto.ca>2006-04-11 19:23:03 -0400
committerAaron Bentley <aaron.bentley@utoronto.ca>2006-04-11 19:23:03 -0400
commite9d18ea441fbc7d2aa2f769a7eba129e5f132518 (patch)
tree511e1f632c07e0d4cf197e1cf9da012be93ba44f /Bugs-Everywhere-Web/beweb/controllers.py
parent881d1ce81bc97d53f44997ff7a0198717b754df2 (diff)
parent3edaf3974b197c89189803b2f99834fd8d735c64 (diff)
downloadbugseverywhere-e9d18ea441fbc7d2aa2f769a7eba129e5f132518.tar.gz
Merge with other be
Diffstat (limited to 'Bugs-Everywhere-Web/beweb/controllers.py')
-rw-r--r--Bugs-Everywhere-Web/beweb/controllers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugs-Everywhere-Web/beweb/controllers.py b/Bugs-Everywhere-Web/beweb/controllers.py
index 9231030..4417a63 100644
--- a/Bugs-Everywhere-Web/beweb/controllers.py
+++ b/Bugs-Everywhere-Web/beweb/controllers.py
@@ -23,6 +23,7 @@ class Comment(PrestHandler):
bug_tree = project_tree(comment_data['project'])
bug = bug_tree.get_bug(comment_data['bug'])
comment = new_comment(bug, "")
+ comment.From = identity.current.user.userId
comment.content_type = "text/restructured"
comment.save()
raise cherrypy.HTTPRedirect(comment_url(comment=comment.uuid,
@@ -33,6 +34,7 @@ class Comment(PrestHandler):
bug_tree = project_tree(comment_data['project'])
bug = bug_tree.get_bug(comment_data['bug'])
reply_comment = new_comment(bug, "")
+ reply_comment.From = identity.current.user.userId
reply_comment.in_reply_to = comment.uuid
reply_comment.save()
reply_data = dict(comment_data)
@@ -92,9 +94,11 @@ class Bug(PrestHandler):
"search" : search,
}
+ @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.creator = identity.current.user.userId
bug.save()
raise cherrypy.HTTPRedirect(bug_url(bug_data['project'], bug.uuid))