summaryrefslogtreecommitdiff
path: root/docs/narr/MyProject/myproject
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-28 01:54:50 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-28 01:54:50 +0000
commit6103bf8050466329aba930df000f042dbdff8efa (patch)
tree1dd16982214ff634d7c46082eb86468bf24a73b9 /docs/narr/MyProject/myproject
parent0970432b72d8f4360b69dc58223ea0725d747d36 (diff)
downloadpyramid-6103bf8050466329aba930df000f042dbdff8efa.tar.gz
pyramid-6103bf8050466329aba930df000f042dbdff8efa.tar.bz2
pyramid-6103bf8050466329aba930df000f042dbdff8efa.zip
Document the request-only calling convention as the default.
Diffstat (limited to 'docs/narr/MyProject/myproject')
-rw-r--r--docs/narr/MyProject/myproject/tests.py3
-rw-r--r--docs/narr/MyProject/myproject/views.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/narr/MyProject/myproject/tests.py b/docs/narr/MyProject/myproject/tests.py
index 8b3fcc73b..7c3caac74 100644
--- a/docs/narr/MyProject/myproject/tests.py
+++ b/docs/narr/MyProject/myproject/tests.py
@@ -11,8 +11,7 @@ class ViewTests(unittest.TestCase):
def test_my_view(self):
from myproject.views import my_view
- context = testing.DummyModel()
request = testing.DummyRequest()
- info = my_view(context, request)
+ info = my_view(request)
self.assertEqual(info['project'], 'MyProject')
diff --git a/docs/narr/MyProject/myproject/views.py b/docs/narr/MyProject/myproject/views.py
index 036b140fb..c43b34460 100644
--- a/docs/narr/MyProject/myproject/views.py
+++ b/docs/narr/MyProject/myproject/views.py
@@ -1,2 +1,2 @@
-def my_view(context, request):
+def my_view(request):
return {'project':'MyProject'}