aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-04-11 12:03:28 -0400
committerAaron Bentley <abentley@panoramicfeedback.com>2006-04-11 12:03:28 -0400
commit868f40a1fce89c338a50290437afc6834fcf094d (patch)
treeb346f3dff0498a5208b22913fa8771dcec37d742
parent98c04f8745010cafa774d562fd7e109319e49ed4 (diff)
downloadbugseverywhere-868f40a1fce89c338a50290437afc6834fcf094d.tar.gz
Enable identity tracking
-rw-r--r--Bugs-Everywhere-Web/beweb/app.cfg16
-rw-r--r--Bugs-Everywhere-Web/beweb/model.py2
-rw-r--r--Bugs-Everywhere-Web/dev.cfg2
3 files changed, 10 insertions, 10 deletions
diff --git a/Bugs-Everywhere-Web/beweb/app.cfg b/Bugs-Everywhere-Web/beweb/app.cfg
index 0035ffb..024fa8a 100644
--- a/Bugs-Everywhere-Web/beweb/app.cfg
+++ b/Bugs-Everywhere-Web/beweb/app.cfg
@@ -31,7 +31,7 @@
# --------------
# Enable Visit tracking
-# visit.on=False
+visit.on=True
# Number of minutes a visit may be idle before it expires.
# visit.timeout=20
@@ -57,29 +57,29 @@
# --------
# Switch to turn on or off the Identity management module
-# identity.on=False
+identity.on=True
# [REQUIRED] URL to which CherryPy will internally redirect when an access
# control check fails. If Identity management is turned on, a value for this
# option must be specified.
-# identity.failure_url=None
+identity.failure_url="/login"
# The IdentityProvider to use -- defaults to the SqlObjectIdentityProvider which
# pulls User, Group, and Permission data out of your model database.
-# identity.provider="sqlobject"
+identity.provider="sqlobject"
# The names of the fields on the login form containing the visitor's user ID
# and password. In addition, the submit button is specified simply so its
# existence may be stripped out prior to passing the form data to the target
# controller.
-# identity.form.user_name="user_name"
-# identity.form.password="password"
-# identity.form.submit="login"
+identity.form.user_name="user_name"
+identity.form.password="password"
+identity.form.submit="login"
# What sources should the identity provider consider when determining the
# identity associated with a request? Comma separated list of identity sources.
# Valid sources: form, visit, http_auth
-# identity.source="form,http_auth,visit"
+identity.source="form,http_auth,visit"
# SqlObjectIdentityProvider
diff --git a/Bugs-Everywhere-Web/beweb/model.py b/Bugs-Everywhere-Web/beweb/model.py
index e20d1ce..33d2d2f 100644
--- a/Bugs-Everywhere-Web/beweb/model.py
+++ b/Bugs-Everywhere-Web/beweb/model.py
@@ -1,7 +1,7 @@
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
hub = PackageHub("beweb")
__connection__ = hub
diff --git a/Bugs-Everywhere-Web/dev.cfg b/Bugs-Everywhere-Web/dev.cfg
index e985b4b..2d9433f 100644
--- a/Bugs-Everywhere-Web/dev.cfg
+++ b/Bugs-Everywhere-Web/dev.cfg
@@ -9,7 +9,7 @@
# pick the form for your database
# sqlobject.dburi="postgres://username@hostname/databasename"
# sqlobject.dburi="mysql://username:password@hostname:port/databasename"
-# sqlobject.dburi="sqlite:///file_name_and_path"
+sqlobject.dburi="sqlite:////home/abentley/be/be/Bugs-Everywhere-Web/database.sqlite"
# if you are using a database or table type without transactions
# (MySQL default, for example), you should turn off transactions