diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-12 20:07:28 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-12 20:07:28 -0500 |
| commit | a6cd3dab239920ba14629083d8f36b56141ca0dc (patch) | |
| tree | 973e8b1db8077ee85dcbabe8c4e887c42f7f1fdb /docs | |
| parent | b6ebd096bb1739827dd274353573dd68c924e8e9 (diff) | |
| download | pyramid-a6cd3dab239920ba14629083d8f36b56141ca0dc.tar.gz pyramid-a6cd3dab239920ba14629083d8f36b56141ca0dc.tar.bz2 pyramid-a6cd3dab239920ba14629083d8f36b56141ca0dc.zip | |
fix tutorial to not update the context with the content of request.matchdict, unnecessary and breaks now that request has a matchdict of None
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tutorials/wiki2/authorization.rst | 2 | ||||
| -rw-r--r-- | docs/tutorials/wiki2/src/authorization/tutorial/models.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst index aaf0f0184..b7e20a95b 100644 --- a/docs/tutorials/wiki2/authorization.rst +++ b/docs/tutorials/wiki2/authorization.rst @@ -49,7 +49,7 @@ inside our ``models.py`` file. Add the following statements to your __acl__ = [ (Allow, Everyone, 'view'), (Allow, 'group:editors', 'edit') ] def __init__(self, request): - self.__dict__.update(request.matchdict) + pass The ``RootFactory`` class we've just added will be used by :app:`Pyramid` to construct a ``context`` object. The context is diff --git a/docs/tutorials/wiki2/src/authorization/tutorial/models.py b/docs/tutorials/wiki2/src/authorization/tutorial/models.py index c914163bf..7580220b6 100644 --- a/docs/tutorials/wiki2/src/authorization/tutorial/models.py +++ b/docs/tutorials/wiki2/src/authorization/tutorial/models.py @@ -48,4 +48,4 @@ class RootFactory(object): __acl__ = [ (Allow, Everyone, 'view'), (Allow, 'group:editors', 'edit') ] def __init__(self, request): - self.__dict__.update(request.matchdict) + pass |
