| Age | Commit message (Collapse) | Author |
|
for example::
env/bin/python -3 -m pyramid.scripts.pserve development.ini
|
|
|
|
|
|
the key plus the equal sign
|
|
|
|
``ACLAuthorizationPolicy`` so it anticipates a callable ``__acl__``
on resources. Previously it did not try to call the ``__acl__``
if it was callable.
|
|
slash it does not produce a non-working project directory structure.
Previously saying ``pcreate -s starter /foo/bar/`` produced different output
than saying ``pcreate -s starter /foo/bar``. The former did not work
properly.
|
|
|
|
had to fix DummyBootstrap a bit because it fails pretty hard at handling
part of bootstrap contract in which the request passed in should be
enhanced with the registry, and returned. In some cases the wrong
request or the wrong registry were being returned if the test case
actually specified a registry or request.
|
|
|
|
|
|
|
|
error, and instead behave like other renderers which, when missing, cause pyramid to throw a valueerror at rendering time
|
|
|
|
|
|
a deprecation warning when used. It had been docs-deprecated in 1.4
but did not issue a deprecation warning when used.
|
|
and change its implementation so it uses add_response_adapter instead of mutating registry directly
|
|
|
|
testing.setUp() and within the Configurator constructor
|
|
|
|
|
|
|
|
``pyramid.config.Configurator` constructor and its ``setup_registry`` method
has been removed. The ``set_renderer_globals_factory`` method of
``pyramid.config.Configurator`` has also been removed. The (internal)
``pyramid.interfaces.IRendererGlobals`` interface was also removed. These
arguments, methods and interfaces had been deprecated since 1.1. Use a
``BeforeRender`` event subscriber as documented in the "Hooks" chapter of the
Pyramid narrative documentation instead of providing renderer globals values
to the configurator.
|
|
``pyramid.traversal.DefaultRootFactory`` which populated the ``__dict__`` of
the factory with the matchdict values for compatibility with BFG 0.9.
|
|
object as if it were a dictionary. Previously it was possible to use methods
like ``__getitem__``, ``get``, ``items``, and other dictlike methods to
access values in the WSGI environment. This behavior had been deprecated
since Pyramid 1.1. Use methods of ``request.environ`` (a real dictionary)
instead.
|
|
``pyramid.config.Configurator.add_route``: `view``, ``view_context``.
``view_for``, ``view_permission``, ``view_renderer``, and ``view_attr``.
Using these arguments had been deprecated since Pyramid 1.1. Instead of
passing view-related arguments to ``add_route``, use a separate call to
``pyramid.config.Configurator.add_view`` to associate a view with a route
using its ``route_name`` argument. Note that this impacts the
``pyramid.config.Configurator.add_static_view`` function too, because it
delegates to ``add_route``.
|
|
since Pyramid 1.1. Use the ``pyramid.request.Request.is_response`` method
instead.
|
|
since Pyramid 1.1. Instead use ``pyramid.static.static_view`` with
``use_subpath=True`` argument.
|
|
|
|
|
|
|
|
|
|
This allows a {view,route,subscriber} predicate factory to be named as a
python dotted name that is then automatically resolved.
Includes tests.
|
|
|
|
callbacks are executed. It previously executed before response callbacks
were executed. Rationale: it's more useful to be able to inspect the response
after response callbacks have done their jobs instead of before.
Closes #1116.
|
|
|
|
|
|
|
|
github.com:bertjwregeer/pyramid into bertjwregeer-feature/split_renderers_from_pyramid
|
|
Update package_name() to work with namespace pkgs
|
|
|
|
|
|
|
|
It is no longer used, and thus wasn't covered.
|
|
|
|
We already added a test that verified that a renderer no longer
mutated request.response, now we also have a test that verifies that if
no response exists, then it won't be touched either.
|
|
The logic in pyramid.path.package_name() should take into
account the fact that namespace packages created by
setuptools do not have __init__.py[c] files, and so they
have no __file__ attribute.
This resolves an issue with WSME
(https://bugs.launchpad.net/wsme/+bug/1221201)
Change-Id: I39bc32a9c38fa11c4cef22a041077ed9001091be
|
|
|
|
|
|
Due to only creating the DummyRequest once various mutations were
bleeding across various different tests. With hilarious results.
|