summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2011-04-11condition coverage for authorization moduleChris McDonough
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
2011-03-20dont bother covering post methodChris McDonough
2011-03-18add more docstring to DummyRequest: Closes #150Chris McDonough
2011-03-16sorry for the convenienceChris McDonough
2011-03-01Merge branch 'master' of https://github.com/dnouri/pyramid into dnouri-masterChris McDonough
2011-03-01we no longer expect to run on 2.4, dont skip Chameleon-related tests on pypyChris McDonough
2011-02-28Do not quote characters ':@&+$,' in '*elements' passed to route_pathDaniel Nouri
and resource_url. We're deliberately using these safe characters only with '*elements' instead of the whole path since that would break existing apps that persist quoted paths of resources. See https://github.com/dnouri/pyramid/commit/ab19ea8a5372ac83c6f7a7d75d1ecca5ed2b025e#commitcomment-285947
2011-02-28'pyramid.url.resource_url' no longer quotes '@' in '*elements'.Daniel Nouri
See http://groups.google.com/group/pylons-discuss/browse_thread/thread/ebb8e0196858a48
2011-02-26Merge branch 'master' of https://github.com/malthe/pyramid into malthe-masterChris McDonough
2011-02-26it's request_paramChris McDonough
2011-02-25Strip newline before test (this is to be compatible with Chameleon 2.x which ↵Malthe Borch
ensures a trailing newline character after output).
2011-02-25docs fix related to ↵Chris McDonough
https://github.com/Pylons/pyramid/commit/0a0edfcc42611fc9f815e7a4117674678840abb1
2011-02-25- ``pyramid.url.route_path`` (and the shortcutChris McDonough
``pyramid.request.Request.route_url`` method) now include the WSGI SCRIPT_NAME at the front of the path if it is not empty (see https://github.com/Pylons/pyramid/issues/135). - ``pyramid.testing.DummyRequest`` now has a ``script_name`` attribute (the empty string). Closes #135
2011-02-22From the code:Chris McDonough
# While Chrome, IE, and Firefox can cope, Opera (at least) cannot # cope with a port number in the cookie domain when the URL it # receives the cookie from does not also have that port number in it # (e.g via a proxy). In the meantime, HTTP_HOST is sent with port # number, and neither Firefox nor Chrome do anything with the # information when it's provided in a cookie domain except strip it # out. So we strip out any port number from the cookie domain # aggressively to avoid problems. See also # https://github.com/Pylons/pyramid/issues/131 Closes #131
2011-02-17Undo the inner squiggly regex fix introduced in commit #9595236 because the ↵Chris McDonough
regex breaks on Jython. See https://github.com/Pylons/pyramid/issues/#issue/123
2011-02-13fix interface for IRendererChris McDonough
2011-02-13Merge branch 'master' of https://github.com/lambacck/pyramid into ↵Chris McDonough
lambacck-master
2011-02-12Add make_localizer function & docs & testsChristopher Lambacher
2011-02-12Fix tests on win32Christopher Lambacher
2011-02-12Separate making Localizer from getting cached oneChristopher Lambacher