diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2007-02-05 16:35:50 -0500 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2007-02-05 16:35:50 -0500 |
commit | 79b7df5566226c572d66673be4fc2de8be17e10b (patch) | |
tree | 6bbbce70727f47ecb39de4a94d2cf745139186a3 | |
parent | ea15510609d1516000daa8a685731df5d549bfba (diff) | |
download | bugseverywhere-79b7df5566226c572d66673be4fc2de8be17e10b.tar.gz |
Get beweb mostly working
-rw-r--r-- | .bzrignore | 1 | ||||
-rw-r--r-- | Bugs-Everywhere-Web/beweb/model.py | 3 | ||||
-rw-r--r-- | Bugs-Everywhere-Web/dev.cfg | 8 |
3 files changed, 8 insertions, 4 deletions
@@ -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 |