diff options
| author | Carlos de la Guardia <cguardia@yahoo.com> | 2012-03-11 17:13:35 -0600 |
|---|---|---|
| committer | Carlos de la Guardia <cguardia@yahoo.com> | 2012-03-11 17:13:35 -0600 |
| commit | d66d9a6507a983f4a6510ba19a0d4f3e87e39c4b (patch) | |
| tree | cd2d132b6dc73d32c38d5a15fcab1eae7821f2a4 /docs/narr/introduction.rst | |
| parent | ff62796566c254a79521898ed7906288acaed24f (diff) | |
| download | pyramid-d66d9a6507a983f4a6510ba19a0d4f3e87e39c4b.tar.gz pyramid-d66d9a6507a983f4a6510ba19a0d4f3e87e39c4b.tar.bz2 pyramid-d66d9a6507a983f4a6510ba19a0d4f3e87e39c4b.zip | |
view class methods were missing self parameter.
Diffstat (limited to 'docs/narr/introduction.rst')
| -rw-r--r-- | docs/narr/introduction.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/introduction.rst b/docs/narr/introduction.rst index 92955aafd..507201439 100644 --- a/docs/narr/introduction.rst +++ b/docs/narr/introduction.rst @@ -260,11 +260,11 @@ Here's a few views defined as methods of a class instead: self.request = request @view_config(route_name='view_one') - def view_one(request): + def view_one(self, request): return Response('one') @view_config(route_name='view_two') - def view_two(request): + def view_two(self, request): return Response('two') See also :ref:`view_config_placement`. |
