aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'Bugs-Everywhere-Web/beweb/model.py')
-rw-r--r--Bugs-Everywhere-Web/beweb/model.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Bugs-Everywhere-Web/beweb/model.py b/Bugs-Everywhere-Web/beweb/model.py
index e20d1ce..6a603bb 100644
--- a/Bugs-Everywhere-Web/beweb/model.py
+++ b/Bugs-Everywhere-Web/beweb/model.py
@@ -1,10 +1,15 @@
from sqlobject import *
from turbogears.database import PackageHub
# Uncomment the following line if you wish to use Identity and SO_Provider
-# from turbogears.identity.soprovider import TG_User, TG_Group, TG_Permission
+from turbogears.identity.soprovider import TG_User, TG_Group, TG_Permission
+from turbogears import identity
hub = PackageHub("beweb")
__connection__ = hub
+def people_map():
+ return dict([(u.userId, u.displayName) for u in TG_User.select() if
+ "fixbugs" in identity.current.permissions])
+
# class YourDataClass(SQLObject):
# pass