aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web
diff options
context:
space:
mode:
Diffstat (limited to 'Bugs-Everywhere-Web')
-rw-r--r--Bugs-Everywhere-Web/beweb/model.py3
-rw-r--r--Bugs-Everywhere-Web/beweb/templates/bugs.kid3
-rw-r--r--Bugs-Everywhere-Web/beweb/templates/edit_bug.kid3
3 files changed, 7 insertions, 2 deletions
diff --git a/Bugs-Everywhere-Web/beweb/model.py b/Bugs-Everywhere-Web/beweb/model.py
index 33d2d2f..2bda299 100644
--- a/Bugs-Everywhere-Web/beweb/model.py
+++ b/Bugs-Everywhere-Web/beweb/model.py
@@ -6,5 +6,8 @@ from turbogears.identity.soprovider import TG_User, TG_Group, TG_Permission
hub = PackageHub("beweb")
__connection__ = hub
+def people_map():
+ return dict([(u.userId, u.displayName) for u in TG_User.select()])
+
# class YourDataClass(SQLObject):
# pass
diff --git a/Bugs-Everywhere-Web/beweb/templates/bugs.kid b/Bugs-Everywhere-Web/beweb/templates/bugs.kid
index b83a593..3271537 100644
--- a/Bugs-Everywhere-Web/beweb/templates/bugs.kid
+++ b/Bugs-Everywhere-Web/beweb/templates/bugs.kid
@@ -2,7 +2,8 @@
<?python
from libbe.cmdutil import unique_name
from beweb.controllers import bug_url, project_url, bug_list_url
-from beweb.config import people
+from beweb.model import people_map
+people = people_map()
def row_class(bug, num):
if not bug.active is True:
return "closed"
diff --git a/Bugs-Everywhere-Web/beweb/templates/edit_bug.kid b/Bugs-Everywhere-Web/beweb/templates/edit_bug.kid
index c31d660..34fcb99 100644
--- a/Bugs-Everywhere-Web/beweb/templates/edit_bug.kid
+++ b/Bugs-Everywhere-Web/beweb/templates/edit_bug.kid
@@ -3,8 +3,9 @@
from libbe.bugdir import severity_levels, active_status, inactive_status, thread_comments
from libbe.utility import time_to_str
from beweb.controllers import bug_list_url, comment_url
-from beweb.config import people
from beweb.formatting import comment_body_xhtml, select_among
+from beweb.model import people_map
+people = people_map()
?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
py:extends="'master.kid'">