cfbe: API: bd.bug_from_shortname(id) -> bug_comment_from_user_id(bd, id)
authorChris Ball <cjb@laptop.org>
Wed, 23 Jun 2010 02:08:08 +0000 (22:08 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 23 Jun 2010 02:08:08 +0000 (22:08 -0400)
interfaces/web/web.py

index dd09d82eeca97402ad97a58a44c6a49d8d0e253c..473054bcebad100d15292346a2f904d1aa78cafd 100644 (file)
@@ -1,6 +1,7 @@
 import cherrypy
 from libbe import storage
 from libbe import bugdir
+from libbe.command.util import bug_comment_from_user_id
 from libbe.storage.util import settings_object
 from jinja2 import Environment, FileSystemLoader
 from datetime import datetime
@@ -106,7 +107,7 @@ class WebInterface:
         
         self.bd.load_all_bugs()
         
-        bug = self.bd.bug_from_shortname(id)
+        bug, comment = bug_comment_from_user_id(self.bd, id)
         
         template = self.env.get_template('bug.html')
         common_info = self.get_common_information()