* infrastructure for authkit
* menu generation code * improved templates * database and basic role setup in websetup.py
This commit is contained in:
parent
096df406b8
commit
55124e861f
20 changed files with 431 additions and 68 deletions
|
@ -10,6 +10,8 @@ from pylons.middleware import error_mapper, ErrorDocuments, ErrorHandler, \
|
|||
StaticJavascripts
|
||||
from pylons.wsgiapp import PylonsApp
|
||||
|
||||
import authkit.authenticate
|
||||
|
||||
from gnuviechadminweb.config.environment import load_environment
|
||||
|
||||
def make_app(global_conf, full_stack=True, **app_conf):
|
||||
|
@ -43,6 +45,7 @@ def make_app(global_conf, full_stack=True, **app_conf):
|
|||
app = ErrorHandler(app, global_conf, error_template=error_template,
|
||||
**config['pylons.errorware'])
|
||||
|
||||
app = authkit.authenticate.middleware(app, app_conf)
|
||||
# Display error documents for 401, 403, 404 status codes (and
|
||||
# 500 when debug is disabled)
|
||||
app = ErrorDocuments(app, global_conf, mapper=error_mapper, **app_conf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue