From ec4b4a390bff3a0225681380ae949e6da64401c6 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Tue, 11 Apr 2006 16:41:47 -0400 Subject: Use people listings from identity framework, not config, on bug pages. --- Bugs-Everywhere-Web/beweb/model.py | 3 +++ Bugs-Everywhere-Web/beweb/templates/bugs.kid | 3 ++- Bugs-Everywhere-Web/beweb/templates/edit_bug.kid | 3 ++- 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 @@ -- cgit