summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2011-07-15add not-for-civilians warningsChris McDonough
2011-07-15remove bogus information about route_name, refer to the right method of ↵Chris McDonough
Configurator when describing global_registries, add http_cache newness warning
2011-07-15typoChris McDonough
2011-07-15note that make_app mutates global_registriesChris McDonough
2011-07-15silence coverage warningChris McDonough
2011-07-15- get_root2 -> prepareChris McDonough
- change prepare return value to a dict, and return the registry, request, etc - various docs and changelog entries.
2011-07-15add description of return valueChris McDonough
2011-07-15Merge branch 'master' into mmerickel-feature.scriptingChris McDonough
2011-07-15Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2011-07-15fix Jython test failuresChris McDonough
2011-07-15Use assertFalse instead of deprecated failIfBrian Sutherland
2011-07-15deshadow testChris McDonough
2011-07-14Modified tests to use global_registries.remove() instead of relying on gc.Michael Merickel
2011-07-14Added test coverage for p.paster.bootstrap.Michael Merickel
2011-07-14Modified bootstrap to return a dict.Michael Merickel
2011-07-14Removed unused variableMichael Merickel
2011-07-14Added p.paster.bootstrap for handling simple loading of INI files.Michael Merickel
2011-07-14gardenMichael Merickel
2011-07-14Added p.scripting.get_root2 that doesn't require an app arg.Michael Merickel
2011-07-14Just changed some of the docstrings to reference config_uri.Michael Merickel
2011-07-14Reverted get_root back to its behavior of expecting a router instance.Michael Merickel
2011-07-14Updated scripting test coverage to 100%.Michael Merickel
2011-07-14Added some docs for make_request and global_registries.Michael Merickel
2011-07-14Added the ability to make a request object for use in scripts.Michael Merickel
2011-07-14Moved the WeakOrderedSet into pyramid.util.Michael Merickel
2011-07-14Added tracking of p.config.global_registries for created apps.Michael Merickel
2011-07-14Adding a global to track the last registry loaded by Pyramid.Michael Merickel
2011-07-14- Without a mo-file loaded for the combination of domain/locale,Chris McDonough
``pyramid.i18n.Localizer.pluralize`` run using that domain/locale combination raised an inscrutable "translations object has no attr 'plural' error. Now, instead it "works" (it uses a germanic pluralization by default). This is not the "right" thing really (it's nonsensical to try to pluralize something without translations for that locale/domain available), but it matches the behavior of ``pyramid.i18n.Localizer.translate`` so it's at least consistent; see https://github.com/Pylons/pyramid/issues/235. Closes #235.
2011-07-14- New API class: ``pyramid.static.static_view``. This supersedes theChris McDonough
deprecated ``pyramid.view.static`` class. ``pyramid.satic.static_view`` by default serves up documents as the result of the request's ``path_info``, attribute rather than it's ``subpath`` attribute (the inverse was true of ``pyramid.view.static``, and still is). ``pyramid.static.static_view`` exposes a ``use_subpath`` flag for use when you don't want the static view to behave like the older deprecated version. - The ``pyramid.view.static`` class has been deprecated in favor of the newer ``pyramid.static.static_view`` class. A deprecation warning is raised when it is used. You should replace it with a reference to ``pyramid.static.static_view`` with the ``use_subpath=True`` argument.
2011-07-13- Fix corner case to ease semifunctional testing of views: create a newChris McDonough
rendererinfo to clear out old registry on a rescan. See https://github.com/Pylons/pyramid/pull/234. Closes #234.
2011-07-13- Views associated with routes with spaces in the route name may not haveChris McDonough
been looked up correctly when using Pyramid with ``zope.interface`` 3.6.4 and better. Closes #232.
2011-07-13- We now clear ``request.response`` before we invoke an exception view; anChris McDonough
exception view will be working with a request.response that has not been touched by any code prior to the exception.
2011-07-12- New environment setting ``PYRAMID_PREVENT_HTTP_CACHE`` and newChris McDonough
configuration file value ``prevent_http_cache``. These are synomymous and allow you to prevent HTTP cache headers from being set by Pyramid's ``http_cache`` machinery globally in a process. see the "Influencing HTTP Caching" section of the "View Configuration" narrative chapter and the detailed documentation for this setting in the "Environment Variables and Configuration Settings" narrative chapter. - New documentation section in View Configuration narrative chapter: "Influencing HTTP Caching".
2011-07-12- The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` scaffoldsChris McDonough
inappropriately used ``DBSession.rollback()`` instead of ``transaction.abort()`` in one place. - Wiki2 (SQLAlchemy + URL Dispatch) tutorial ``models.initialize_sql`` didn't match the ``pyramid_routesalchemy`` scaffold function of the same name; it didn't get synchronized when it was changed in the scaffold.
2011-07-12- The ``Configurator.add_route`` method allowed two routes with the sameChris McDonough
route to be added without an intermediate ``config.commit()``. If you now receive a ``ConfigurationError`` at startup time that appears to be ``add_route`` related, you'll need to either a) ensure that all of your route names are unique or b) call ``config.commit()`` before adding a second route with the name of a previously added name or c) use a Configurator that works in ``autocommit`` mode.
2011-07-12remove unused importChris McDonough
2011-07-12- Previously, If a ``BeforeRender`` event subscriber added a value via theChris McDonough
``__setitem__`` or ``update`` methods of the event object with a key that already existed in the renderer globals dictionary, a ``KeyError`` was raised. With the deprecation of the "add_renderer_globals" feature of the configurator, there was no way to override an existing value in the renderer globals dictionary that already existed. Now, the event object will overwrite an older value that is already in the globals dictionary when its ``__setitem__`` or ``update`` is called (as well as the new ``setdefault`` method), just like a plain old dictionary. As a result, for maximum interoperability with other third-party subscribers, if you write an event subscriber meant to be used as a BeforeRender subscriber, your subscriber code will now need to (using ``.get`` or ``__contains__`` of the event object) ensure no value already exists in the renderer globals dictionary before setting an overriding value.
2011-07-12remove references to add_route view-related configurationChris McDonough
2011-07-11remove request clasattr, it breaks testsChris McDonough
2011-07-11give request a registry = None clasattr so registry can successfully be ↵Chris McDonough
passed as a kwarg to the Request constructor
2011-07-10slightly more informative error messageChris McDonough
2011-07-10add info to changes.txt and whatsnew about pshell changes; removed unused ↵Chris McDonough
import and unwrap string
2011-07-10Merge branch 'feature.pshell' of https://github.com/mmerickel/pyramid into ↵Chris McDonough
mmerickel-feature.pshell
2011-07-10reverse position of custom decorator and http cache decoratorChris McDonough
2011-07-09add prevent_auto flag to cache controlChris McDonough
2011-07-09add prevent_auto flag to cache controlChris McDonough
2011-07-09prevent an extra function call when a renderer is in useChris McDonough
2011-07-09request.json -> request.json_body; add some docs for json_bodyChris McDonough
2011-07-09Merge branch 'responsewrapping'Chris McDonough
2011-07-09massive test rejiggering to account for the addition of response_resolved_viewChris McDonough