@@ -28,7 +28,7 @@ def init_mimetypes(mimetypes):
28
28
# fallout.
29
29
init_mimetypes (mimetypes )
30
30
31
- # Nast BW compat hack: dont yet deprecate this (ever?)
31
+ # Nasty BW compat hack: dont yet deprecate this (ever?)
32
32
class static (static_view ): # only subclass for purposes of autodoc
33
33
__doc__ = static_view .__doc__
34
34
@@ -235,7 +235,7 @@ def callback(context, name, ob):
235
235
settings ['_info' ] = info .codeinfo
236
236
return wrapped
237
237
238
- bfg_view = view_config # permanent b/c
238
+ bfg_view = view_config
239
239
240
240
deprecated (
241
241
'bfg_view' ,
@@ -313,14 +313,14 @@ def __call__(self, context, request):
313
313
For behavior like Django's ``APPEND_SLASH=True``, use this view as the
314
314
:term:`Not Found view` in your application.
315
315
316
- When this view is the Not Found view (indicating that no view was
317
- found), and any routes have been defined in the configuration of your
318
- application, if the value of the ``PATH_INFO`` WSGI environment
319
- variable does not already end in a slash, and if the value of
320
- ``PATH_INFO`` *plus* a slash matches any route's path, do an HTTP
321
- redirect to the slash-appended PATH_INFO. Note that this will *lose*
322
- ``POST`` data information (turning it into a GET), so you shouldn't
323
- rely on this to redirect POST requests .
316
+ When this view is the Not Found view (indicating that no view was found), and
317
+ any routes have been defined in the configuration of your application, if the
318
+ value of the ``PATH_INFO`` WSGI environment variable does not already end in
319
+ a slash, and if the value of ``PATH_INFO`` *plus* a slash matches any route's
320
+ path, do an HTTP redirect to the slash-appended PATH_INFO. Note that this
321
+ will *lose* ``POST`` data information (turning it into a GET), so you
322
+ shouldn't rely on this to redirect POST requests. Note also that static
323
+ routes are not considered when attempting to find a matching route .
324
324
325
325
Use the :meth:`pyramid.config.Configurator.add_view` method to configure this
326
326
view as the Not Found view::
0 commit comments