aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-04-11 16:41:47 -0400
committerAaron Bentley <abentley@panoramicfeedback.com>2006-04-11 16:41:47 -0400
commitec4b4a390bff3a0225681380ae949e6da64401c6 (patch)
tree7588535caac0144705d5eaee6e8c09ea0a0ff06d
parent868f40a1fce89c338a50290437afc6834fcf094d (diff)
downloadbugseverywhere-ec4b4a390bff3a0225681380ae949e6da64401c6.tar.gz
Use people listings from identity framework, not config, on bug pages.
-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'">