aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bzrignore1
-rw-r--r--Bugs-Everywhere-Web/beweb/model.py3
-rw-r--r--Bugs-Everywhere-Web/dev.cfg8
3 files changed, 8 insertions, 4 deletions
diff --git a/.bzrignore b/.bzrignore
index e7ebff7..a051550 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -7,3 +7,4 @@ Bugs-Everywhere-Web/beweb/catwalk-session
fte.dsk
*~
./.shelf
+Bugs-Everywhere-Web/devdata.sqlite
diff --git a/Bugs-Everywhere-Web/beweb/model.py b/Bugs-Everywhere-Web/beweb/model.py
index 5537dae..aa4b6b6 100644
--- a/Bugs-Everywhere-Web/beweb/model.py
+++ b/Bugs-Everywhere-Web/beweb/model.py
@@ -104,5 +104,4 @@ class Permission(SQLObject):
otherColumn="group_id")
def people_map():
- return dict([(u.userId, u.displayName) for u in User.select() if
- "fixbugs" in identity.current.permissions])
+ return dict((u.user_name, u.display_name) for u in User.select())
diff --git a/Bugs-Everywhere-Web/dev.cfg b/Bugs-Everywhere-Web/dev.cfg
index cd7c7d7..eda9e6c 100644
--- a/Bugs-Everywhere-Web/dev.cfg
+++ b/Bugs-Everywhere-Web/dev.cfg
@@ -9,11 +9,11 @@
# pick the form for your database
# sqlobject.dburi="postgres://username@hostname/databasename"
# sqlobject.dburi="mysql://username:password@hostname:port/databasename"
-sqlobject.dburi="sqlite://%(package_dir)s/database.sqlite"
+# sqlobject.dburi="sqlite://%(package_dir)s/database.sqlite"
# If you have sqlite, here's a simple default to get you started
# in development
-# sqlobject.dburi="sqlite://%(current_dir_uri)s/devdata.sqlite"
+sqlobject.dburi="sqlite://%(current_dir_uri)s/devdata.sqlite"
# if you are using a database or table type without transactions
@@ -42,6 +42,10 @@ autoreload.package="beweb"
tg.strict_parameters = True
identity.on = True
visit.on = True
+identity.soprovider.model.user="beweb.model.User"
+identity.soprovider.model.group="beweb.model.Group"
+identity.soprovider.model.permission="beweb.model.Permission"
+
# LOGGING
# Logging configuration generally follows the style of the standard