summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2011-04-18appease python gods by converting failIf*/failUnless* to assert* equivalentsChris McDonough
2011-04-18- Deprecated all assignments to ``request.response_*`` attributes such asChris McDonough
``request.response_content_type = 'foo'``. Assignments and mutations of the following request attributes that were considered by the framework for response influence are now deprecated: ``response_content_type``, ``response_headerlist``, ``response_status``, ``response_charset``, and ``response_cache_for``. Instead of assigning these to the request object for detection by the rendering machinery, users should use the appropriate API of the Response object created by accessing ``request.response`` (e.g. ``request.response_content_type = 'abc'`` -> ``request.response.content_type = 'abc'``). - Custom request objects are now required to have a ``response`` attribute (or reified property) if they are meant to be used with renderers. This ``response`` attribute should be an instance of the class ``pyramid.response.Response``. - The JSON and string renderer factories now use ``request.response.content_type`` rather than ``request.response_content_type``. They determine whether they should set the content type of the response by comparing the response's content type against the default (usually ``text/html``); if the content type is not the default, the renderer changes the content type (to ``application/json`` or ``text/plain`` for JSON and string renderers respectively). - Made it possible to assign to and delete ``pyramid.testing.DummyRequest.registry`` (bugfix).
2011-04-18- When visiting a URL that represented a static view which resolved to aChris McDonough
subdirectory, the ``index.html`` of that subdirectory would not be served properly. Instead, a redirect to ``/subdir`` would be issued. This has been fixed, and now visiting a subdirectory that contains an ``index.html`` within a static view returns the index.html properly. See also https://github.com/Pylons/pyramid/issues/67. - Redirects issued by a static view did not take into account any existing ``SCRIPT_NAME`` (such as one set by a url mapping composite). Now they do. Closes #67.
2011-04-17refine; it really is a special kind of principal and it would not be correct ↵Chris McDonough
to say 'no principals' (the userid is a principal id itself)
2011-04-17condition coverageChris McDonough
2011-04-17add tests for PyramidTemplateChris McDonough
2011-04-17condition coverage for the pyramid.static module; simplify PackageURLParser, ↵Chris McDonough
removing some impossible-to-reach code
2011-04-15condition coverage for pyramid.i18nChris McDonough
2011-04-15better docstringChris McDonough
2011-04-15100% condition coverage for pyramid.encodeChris McDonough
2011-04-15condition coverage for pyramid.configChris McDonough
2011-04-14condition coverage for asset moduleChris McDonough
2011-04-13- Add missing docs reference toChris McDonough
``pyramid.config.Configurator.set_view_mapper`` and refer to it within Hooks chapter section named "Using a View Mapper".
2011-04-13- Make ``pyramid.interfaces.IAuthenticationPolicy`` andChris McDonough
``pyramid.interfaces.IAuthorizationPolicy`` public interfaces, and refer to them within the ``pyramid.authentication`` and ``pyramid.authorization`` API docs. - Render the function definitions for each exposed interface in ``pyramid.interfaces``. Closes #167.
2011-04-13condition coverage and simplify 'get_spec' method of chameleonlookupChris McDonough
2011-04-12extend testChris McDonough
2011-04-12condition coverageChris McDonough
2011-04-12add test for mimetypes initialization import-time side-effect callableChris McDonough
2011-04-11condition coverage for authorization moduleChris McDonough
2011-04-11Updated auth api docs to use the term principals instead of groups.Michael Merickel
2011-04-11100% condition coverage of authentication moduleChris McDonough
2011-04-11- Don't explicitly prevent the ``timeout`` from being lower than theChris McDonough
``reissue_time`` when setting up an ``AuthTktAuthenticationPolicy`` (previously such a configuration would raise a ``ValueError``, now it's allowed, although typically nonsensical). Allowing the nonsensical configuration made the code more understandable and required fewer tests. - Add a test for when the auth_tkt value is empty.
2011-04-10- It is now possible to get information about why Pyramid raised a ForbiddenChris McDonough
exception from within an exception view. The ``ACLDenied`` object returned by the ``permits`` method of each stock authorization policy (``pyramid.interfaces.IAuthorizationPolicy.permits``) is now attached to the Forbidden exception as its ``result`` attribute. Therefore, if you've created a Forbidden exception view, you can see the ACE, ACL, permission, and principals involved in the request as eg. ``context.result.permission``, ``context.result.acl``, etc within the logic of the Forbidden exception view.
2011-04-10- An exception raised by a NewRequest event subscriber can now be caught byChris McDonough
an exception view.
2011-04-06Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2011-04-06- ``testing.DummyRequest`` used the wrong registry (the global registry) asChris McDonough
``self.registry`` if a dummy request was created *before* ``testing.setUp`` was executed (``testing.setUp`` pushes a local registry onto the threadlocal stack). Fixed by implementing ``registry`` as a property for DummyRequest instead of eagerly assigning an attribute. See also https://github.com/Pylons/pyramid/issues/165 Closes #165.
2011-04-05changed css fonts loading from google to pylonsprojectBlaise Laflamme
2011-04-01- Static views registered with ``config.add_static_view`` which also includedChris McDonough
a ``permission`` keyword argument would not work as expected, because ``add_static_view`` also registered a route factory internally. Because a route factory was registered internally, the context checked by the Pyramid permission machinery never had an ACL. ``add_static_view`` no longer registers a route with a factory, so the default root factory will be used. - ``config.add_static_view`` now passes extra keyword arguments it receives to ``config.add_route`` (calling add_static_view is mostly logically equivalent to adding a view of the type ``pyramid.static.static_view`` hooked up to a route with a subpath). This makes it possible to pass e.g., ``factory=`` to ``add_static_view`` to protect a particular static view with a custom ACL. Closes #161.
2011-03-30condition coverageChris McDonough
2011-03-29condition coverageChris McDonough
2011-03-29stray cut and pasteChris McDonough
2011-03-29branch coverageChris McDonough
2011-03-29branch coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28remove bogus branchChris McDonough
2011-03-28branch will never be falseChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28statement coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-28branch coverageChris McDonough
2011-03-24Merge remote branch 'source/master'Alexandre Bourget
Conflicts: docs/narr/hooks.rst
2011-03-24Fix some typos.Alexandre Bourget
2011-03-22- Include SCRIPT_NAME in redirects issued byChris McDonough
``pyramid.view.append_slash_notfound_view`` (see https://github.com/Pylons/pyramid/issues#issue/149). Closes #149