summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/designdefense.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/designdefense.rst b/docs/designdefense.rst
index e98dfb00d..9c6e2eb39 100644
--- a/docs/designdefense.rst
+++ b/docs/designdefense.rst
@@ -112,8 +112,8 @@ developer calls it like so:
.. code-block:: python
:linenos:
- from repoze.bfg.security import authenticated_userid
- userid = authenticated_userid(request)
+ from repoze.bfg.security import authenticated_userid
+ userid = authenticated_userid(request)
He now has the current user id.
@@ -419,7 +419,7 @@ acommodate this by allowing people to define "custom" view predicates:
def subpath(context, request):
return request.subpath and request.subpath[0] == 'abc'
- @bfg_view(custom_predicates=(subpath,)))
+ @bfg_view(custom_predicates=(subpath,))
def aview(request):
return Response('OK')