Get beweb mostly working
authorAaron Bentley <abentley@panoramicfeedback.com>
Mon, 5 Feb 2007 21:35:50 +0000 (16:35 -0500)
committerAaron Bentley <abentley@panoramicfeedback.com>
Mon, 5 Feb 2007 21:35:50 +0000 (16:35 -0500)
.bzrignore
Bugs-Everywhere-Web/beweb/model.py
Bugs-Everywhere-Web/dev.cfg

index e7ebff7d70372573d22c1e89dbc2e1776c095b3e..a0515507a21e876835d6e19fb1a34c233cfbf5e8 100644 (file)
@@ -7,3 +7,4 @@ Bugs-Everywhere-Web/beweb/catwalk-session
 fte.dsk
 *~
 ./.shelf
+Bugs-Everywhere-Web/devdata.sqlite
index 5537dae5140eee40ec86c3e4964ec1ef7a565399..aa4b6b657ee00ae9740466a0ea2b38a75aca4a63 100644 (file)
@@ -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())
index cd7c7d72bff381249a22b01013c9c8c45adf2d9e..eda9e6c87534ad362f54f31a6cfa43e692e34325 100644 (file)
@@ -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