summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-25 04:36:42 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-25 04:36:42 +0000
commit1b7aaf55be36c6230b274ce99d8128721cc0bbc5 (patch)
treeda12f7a5df0b0341d5ea95fdf6edb0b40b9c487e /docs
parentad469ba14e85f685cc6030fa531590a966945cde (diff)
downloadpyramid-1b7aaf55be36c6230b274ce99d8128721cc0bbc5.tar.gz
pyramid-1b7aaf55be36c6230b274ce99d8128721cc0bbc5.tar.bz2
pyramid-1b7aaf55be36c6230b274ce99d8128721cc0bbc5.zip
Normalize code blocks.
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')