aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb/model.py
diff options
context:
space:
mode:
authorAaron Bentley <aaron.bentley@utoronto.ca>2006-04-11 19:23:03 -0400
committerAaron Bentley <aaron.bentley@utoronto.ca>2006-04-11 19:23:03 -0400
commite9d18ea441fbc7d2aa2f769a7eba129e5f132518 (patch)
tree511e1f632c07e0d4cf197e1cf9da012be93ba44f /Bugs-Everywhere-Web/beweb/model.py
parent881d1ce81bc97d53f44997ff7a0198717b754df2 (diff)
parent3edaf3974b197c89189803b2f99834fd8d735c64 (diff)
downloadbugseverywhere-e9d18ea441fbc7d2aa2f769a7eba129e5f132518.tar.gz
Merge with other be
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