summaryrefslogtreecommitdiff
path: root/docs/tutorials/bfgwiki2/src/authorization
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-10-30 20:06:22 +0000
committerChris McDonough <chrism@agendaless.com>2009-10-30 20:06:22 +0000
commit27862b83712010e4d3f843f74111df260188d321 (patch)
tree4126f19a128b0e00cddc0681f793adafd7f7cc9e /docs/tutorials/bfgwiki2/src/authorization
parent8d3a5385e4f797999bf68fbb7ca1c592b32cb550 (diff)
downloadpyramid-27862b83712010e4d3f843f74111df260188d321.tar.gz
pyramid-27862b83712010e4d3f843f74111df260188d321.tar.bz2
pyramid-27862b83712010e4d3f843f74111df260188d321.zip
Update documentation after root factory changes.
Diffstat (limited to 'docs/tutorials/bfgwiki2/src/authorization')
-rw-r--r--docs/tutorials/bfgwiki2/src/authorization/tutorial/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/bfgwiki2/src/authorization/tutorial/models.py b/docs/tutorials/bfgwiki2/src/authorization/tutorial/models.py
index 283ddea74..db2095ad1 100644
--- a/docs/tutorials/bfgwiki2/src/authorization/tutorial/models.py
+++ b/docs/tutorials/bfgwiki2/src/authorization/tutorial/models.py
@@ -33,8 +33,8 @@ class Page(Base):
class RootFactory(object):
__acl__ = [ (Allow, Everyone, 'view'), (Allow, 'editor', 'edit') ]
- def __init__(self, environ):
- self.__dict__.update(environ['bfg.routes.matchdict'])
+ def __init__(self, request):
+ self.__dict__.update(request.matchdict)
def initialize_sql(db, echo=False):
engine = create_engine(db, echo=echo)