From 906a9c2100f7b60d70bc38f246b3b1f83e6ea5ac Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sat, 4 Feb 2012 15:09:54 +0100 Subject: Remove superfluous 's' --- docs/designdefense.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/designdefense.rst b/docs/designdefense.rst index 59b0e5a2d..c38598d58 100644 --- a/docs/designdefense.rst +++ b/docs/designdefense.rst @@ -219,7 +219,7 @@ is this: Using such wrappers, we strive to always hide the ZCA API from application developers. Application developers should just never know about the ZCA API: they should call a Python function with some object germane to the domain as -an argument, and it should returns a result. A corollary that follows is +an argument, and it should return a result. A corollary that follows is that any reader of an application that has been written using :app:`Pyramid` needn't understand the ZCA API either. -- cgit v1.2.3 From 4d7bdd57015da80f52cb4a05c26ba23e8b05f127 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sat, 4 Feb 2012 15:37:25 +0100 Subject: Add missing comma --- docs/designdefense.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/designdefense.rst b/docs/designdefense.rst index c38598d58..84b6be907 100644 --- a/docs/designdefense.rst +++ b/docs/designdefense.rst @@ -720,7 +720,7 @@ microframeworks and Django boast. The :mod:`zope.component`, package on which :app:`Pyramid` depends has transitive dependencies on several other packages (:mod:`zope.event`, and :mod:`zope.interface`). :app:`Pyramid` also has its own direct dependencies, -such as :term:`PasteDeploy`, :term:`Chameleon`, :term:`Mako` :term:`WebOb`, +such as :term:`PasteDeploy`, :term:`Chameleon`, :term:`Mako`, :term:`WebOb`, :mod:`zope.deprecation` and some of these in turn have their own transitive dependencies. -- cgit v1.2.3 From dfb48f933fca50515bdc165931781043ff1ed20b Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Mon, 6 Feb 2012 22:36:46 -0800 Subject: simplify --- pyramid/config/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyramid/config/util.py b/pyramid/config/util.py index 6c1bb8368..5f0dd98ac 100644 --- a/pyramid/config/util.py +++ b/pyramid/config/util.py @@ -44,7 +44,7 @@ def action_method(wrapped): self._ainfo = [] info = kw.pop('_info', None) # backframes for outer decorators to actionmethods - backframes = kw.pop('_backframes', 2) + backframes = kw.pop('_backframes', 2) if is_nonstr_iter(info) and len(info) == 4: # _info permitted as extract_stack tuple info = ActionInfo(*info) @@ -132,7 +132,7 @@ def make_predicates(xhr=None, request_method=None, path_info=None, request_method = sorted(request_method) def request_method_predicate(context, request): return request.method in request_method - text = "request method = %s" % repr(request_method) + text = "request method = %r" % request_method request_method_predicate.__text__ = text weights.append(1 << 2) predicates.append(request_method_predicate) -- cgit v1.2.3 From 02c12a9e2ff804e825fdb22c28e1d16e14ac6c1f Mon Sep 17 00:00:00 2001 From: Jens Rantil Date: Tue, 7 Feb 2012 16:01:51 +0100 Subject: Minor documentation fix. Correcting a noun; 'a' => 'an', since __call__ starts with a consonant. --- docs/narr/views.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/narr/views.rst b/docs/narr/views.rst index fa34cca61..dbc702de8 100644 --- a/docs/narr/views.rst +++ b/docs/narr/views.rst @@ -30,7 +30,7 @@ View Callables View callables are, at the risk of sounding obvious, callable Python objects. Specifically, view callables can be functions, classes, or instances -that implement an ``__call__`` method (making the instance callable). +that implement a ``__call__`` method (making the instance callable). View callables must, at a minimum, accept a single argument named ``request``. This argument represents a :app:`Pyramid` :term:`Request` -- cgit v1.2.3