summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2013-10-09add the ability to run the scripts using "python -m"Michael Merickel
for example:: env/bin/python -3 -m pyramid.scripts.pserve development.ini
2013-10-08remove unused renderer argChris McDonough
2013-10-02fix merge conflictChris McDonough
2013-10-02 render the qs such that when provided with None as a value, it will render ↵Chris McDonough
the key plus the equal sign
2013-10-02fix merge conflictChris McDonough
2013-10-01- Fix the ``principals_allowed_by_permission`` method ofChris McDonough
``ACLAuthorizationPolicy`` so it anticipates a callable ``__acl__`` on resources. Previously it did not try to call the ``__acl__`` if it was callable.
2013-10-01- Fix the ``pcreate`` script so that when the target directory name ends with aChris McDonough
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.
2013-10-01remove unused filesChris McDonough
2013-09-28update pviews to work with the bootstrapped requestMichael Merickel
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.
2013-09-28set custom request methods when doing a pview lookupMichael Merickel
2013-09-27support a None value in query string parametersMichael Merickel
2013-09-22run zodb scaffolding tests on py3 too (now compat) and dont use distribute everChris McDonough
2013-09-22make sure that missing template renderer factories dont cause a startup time ↵Chris McDonough
error, and instead behave like other renderers which, when missing, cause pyramid to throw a valueerror at rendering time
2013-09-12Add doc about the top level member limitation of ``view_config``Adam Groszer
2013-09-11appeaseChris McDonough
2013-09-09- The ``pyramid.config.Configurator.set_request_property`` method now issuesChris McDonough
a deprecation warning when used. It had been docs-deprecated in 1.4 but did not issue a deprecation warning when used.
2013-09-09rename _register_response_adapters method to add_default_response_adapters ↵Chris McDonough
and change its implementation so it uses add_response_adapter instead of mutating registry directly
2013-09-09unused importChris McDonough
2013-09-09create an add_default_renderers method on the configurator and use it from ↵Chris McDonough
testing.setUp() and within the Configurator constructor
2013-09-09unused importChris McDonough
2013-09-0979 colsChris McDonough
2013-09-08issue warnings when custom_predicates argument is used to add_route or add_viewChris McDonough
2013-09-08- The ``renderer_globals_factory`` argument to theChris McDonough
``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.
2013-09-08- Removed ancient backwards compatibily hack inChris McDonough
``pyramid.traversal.DefaultRootFactory`` which populated the ``__dict__`` of the factory with the matchdict values for compatibility with BFG 0.9.
2013-09-08- Removed the ability to influence and query a ``pyramid.request.Request``Chris McDonough
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.
2013-09-08- Removed the ability to pass the following arguments toChris McDonough
``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``.
2013-09-08- Removed the ``pyramid.view.is_response`` function that had been deprecatedChris McDonough
since Pyramid 1.1. Use the ``pyramid.request.Request.is_response`` method instead.
2013-09-08- Removed the class named ``pyramid.view.static`` that had been deprecatedChris McDonough
since Pyramid 1.1. Instead use ``pyramid.static.static_view`` with ``use_subpath=True`` argument.
2013-09-08move test to more correct location, 79 colsChris McDonough
2013-09-08Remove useless spaces.Bert JW Regeer
2013-09-08Deprecate custom_predicates for add_view/add_routeBert JW Regeer
2013-09-08Update documentation to reflect the dotted python nameBert JW Regeer
2013-09-08Small change to allow predicates to be Python Dotted NamesBert JW Regeer
This allows a {view,route,subscriber} predicate factory to be named as a python dotted name that is then automatically resolved. Includes tests.
2013-09-08fix merge conflictChris McDonough
2013-09-07- The ``pyramid.events.NewResponse`` event is now sent **after** responseChris McDonough
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.
2013-09-07single line importChris McDonough
2013-09-07unused importsChris McDonough
2013-09-07make the right assertions about this caseChris McDonough
2013-09-07Merge branch 'feature/split_renderers_from_pyramid' of ↵Chris McDonough
github.com:bertjwregeer/pyramid into bertjwregeer-feature/split_renderers_from_pyramid
2013-09-06Merge pull request #1112 from dhellmann/bug/namespace-packagesChris McDonough
Update package_name() to work with namespace pkgs
2013-09-06removed MyModel.__init__ from the scaffoldssergey.volobuev
2013-09-06Remove un-used Dummies: DummyFactory/DummyRendererInfoBert JW Regeer
2013-09-06Add pragma: nocover due to Py3x/Py2x differencesBert JW Regeer
2013-09-06Remove _registerRenderer function from testsBert JW Regeer
It is no longer used, and thus wasn't covered.
2013-09-06Remove useless function that was used only for ChameleonBert JW Regeer
2013-09-06Add test to verify renders don't add response to RequestBert JW Regeer
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.
2013-09-06Update package_name() to work with namespace pkgsDoug Hellmann
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
2013-09-06update scaffolds to require pyramid_chameleonMichael Merickel
2013-09-05Fix tests on Python 3.xBert JW Regeer
2013-09-05Fix DummyRequest so that response is created each timeBert JW Regeer
Due to only creating the DummyRequest once various mutations were bleeding across various different tests. With hilarious results.