summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2012-11-20- Small microspeed enhancement which anticipates that aChris McDonough
``pyramid.response.Response`` object is likely to be returned from a view. Some code is shortcut if the class of the object returned by a view is this class. A similar microoptimization was done to ``pyramid.request.Request.is_response``.
2012-11-18- A failure when trying to locate the attribute ``__text__`` on route and viewChris McDonough
predicates existed when the ``debug_routematch`` setting was true or when the ``pviews`` command was used. See https://github.com/Pylons/pyramid/pull/727 Closes #727.
2012-11-14ref #725; indicate how to join the result of render_view_to_iterableChris McDonough
2012-11-13indicate render_view returns a bytestring (see #725)Michael Merickel
2012-11-13simplfied change as response.app_iter must contain bytes per pep 3333Michael Merickel
2012-11-13My fix for Issue #721. Made view.py - render_view to convert iterable inputAlex Volkov
into bytestring and joing it with bytestring.
2012-11-12Move pyramid.config.views.viewdefaults -> pyramid.util.viewdefaultsChris McDonough
Move pyramid.config.util.ActionInfo -> pyramid.util.ActionInfo Move pyramid.config.util.action_method -> pyramid.util.action_method This is in support of not requiring substance d and other like systems to import from within pyramid.config (even though these functions and classes are still not officially documented APIs). Backwards compatibility imports have been left in place.
2012-11-11Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2012-11-11- Be more tolerant of potential error conditions in ``match_param`` andChris McDonough
``physical_path`` predicate implementations; instead of raising an exception, return False.
2012-11-04visually aid the decorator= examplePhilip Jenvey
2012-11-04update changelog, close #627Michael Merickel
2012-11-04reversed the ordering of decorator arg to add_viewMichael Merickel
2012-11-04Added explanations to docstring.rforkel
2012-11-04Added support for passing multiple decorators to add_view.rforkel
2012-11-04- Allow a ``_depth`` argument to ``pyramid.view.view_config``, which willChris McDonough
permit limited compisition reuse of the decorator by other software that wants to provide custom decorators that are much like view_config. Closes #637.
2012-11-04reword docsChris McDonough
2012-11-04fix tests to use sha512 to avoid emitting warningsMichael Merickel
2012-11-04emit a warning if a user is using the default hashalg to AuthTktMichael Merickel
2012-11-04merged SHA512AuthTktAuthenticationPolicy into AuthTktAuthenticationPolicyMichael Merickel
AuthTktAuthenticationPolicy now accepts a hashalg parameter and is no longer deprecated. Docs recommend overriding hashalg and using 'sha512'.
2012-11-04fix docs, upgrade tutorials, add change note, deprecate using ↵Chris McDonough
zope.deprecation instead of a warning, make hashalg arg a kwarg in certain cases in case someone (maybe me) is using nonapi function imports from authentication
2012-11-04Merge branch 'feature.sha512_auth' of git://github.com/iElectric/pyramid ↵Chris McDonough
into iElectric-feature.sha512_auth
2012-11-04- In uncommon cases, the ``pyramid_excview_tween_factory`` might haveChris McDonough
inadvertently raised a ``KeyError`` looking for ``request_iface`` as an attribute of the request. It no longer fails in this case. See https://github.com/Pylons/pyramid/issues/700 Fixes #700
2012-11-03- Move ``TopologicalSorter`` from ``pyramid.config.util`` to ``pyramid.util``,Chris McDonough
move ``CyclicDependencyError`` from ``pyramid.config.util`` to ``pyramid.exceptions``, rename ``Singleton`` to ``Sentinel`` and move from ``pyramid.config.util`` to ``pyramid.config.util``; this is in an effort to move that stuff that may be an API one day out of ``pyramid.config.util, because that package should never be imported from non-Pyramid code. TopologicalSorter is still not an API, but may become one.
2012-11-03why is this file hereChris McDonough
2012-11-02dont use a separate request factory; instead just assign ResponseClass attr ↵Chris McDonough
of the Request class to pyramid.response.Response
2012-11-02Merge branch 'master' of git://github.com/wylee/pyramid into wylee-masterChris McDonough
2012-11-02- In the past if a renderer returned ``None``, the body of the resultingChris McDonough
response would be set explicitly to the empty string. Instead, now, the body is left unchanged, which allows the renderer to set a body itself by using e.g. ``request.response.body = b'foo'``. The body set by the renderer will be unmolested on the way out. See https://github.com/Pylons/pyramid/issues/709 Closes #709
2012-11-02resolve merge conflictChris McDonough
2012-11-02- Do not allow the userid returned from the ``authenticated_userid`` or theChris McDonough
userid that is one of the list of principals returned by ``effective_principals`` to be either of the strings ``system.Everyone`` or ``system.Authenticated`` when any of the built-in authorization policies that live in ``pyramid.authentication`` are in use. These two strings are reserved for internal usage by Pyramid and they will not be accepted as valid userids.
2012-10-30updated authentication policy api documentationMichael Merickel
2012-10-30updated docsMichael Merickel
2012-10-30raise exc if view_execution_permitted invoked on non-existant viewMichael Merickel
fix #299
2012-10-28- Added an ``effective_principals`` route and view predicate.Chris McDonough
2012-10-26- New ``physical_path`` view predicate. If specified, this value should be aChris McDonough
string or a tuple representing the physical traversal path of the context found via traversal for this predicate to match as true. For example: ``physical_path='/'`` or ``physical_path='/a/b/c'`` or ``physical_path=('', 'a', 'b', 'c')``. This is not a path prefix match or a regex, it's a whole-path match. It's useful when you want to always potentially show a view when some object is traversed to, but you can't be sure about what kind of object it will be, so you can't use the ``context`` predicate. The individual path elements inbetween slash characters or in tuple elements should be the Unicode representation of the name of the resource and should not be encoded in any way.
2012-10-14Fixes for Python 3.Chris Rossi
2012-10-14Merge branch 'master' into feature-basic-authChris Rossi
2012-10-14Include recipe for issuing challenge.Chris Rossi
2012-10-13Merge pull request #706 from mmerickel/feature.scaffold-comments2Chris McDonough
updated ini files with links to documentation
2012-10-13updated ini files with links to documentationMichael Merickel
2012-10-13Merge branch 'master' into 1.4-branchChris McDonough
2012-10-13add docs and changelog noteChris McDonough
2012-10-13added tests for header predicate and standardized the text propertyMichael Merickel
2012-10-13updated request_param and match_param to use as_sorted_tupleMichael Merickel
2012-10-13collapsed request_param text to match the match_param text formatMichael Merickel
2012-10-13allow request_param predicate to accept a tuple of constraintsMichael Merickel
2012-10-12Test coverage.Chris Rossi
2012-10-12Add basic auth authentication policy.Chris Rossi
2012-10-12Fix indentationChris McDonough
2012-10-09Get rid of monkeypatch of Request and Response in pyramid.__init__Wyatt L Baldwin
Added `request.default_request_factory()`, which is now used as the default request factory in the `Router` constructor instead of using the `Request` class directly as the default request factory. Fixes #702
2012-10-07- The Configurator ``testing_securitypolicy`` method now returns the policyChris McDonough
object it creates. - The Configurator ``testing_securitypolicy`` method accepts two new arguments: ``remember_result`` and ``forget_result``. If supplied, these values influence the result of the policy's ``remember`` and ``forget`` methods, respectively. - The DummySecurityPolicy created by ``testing_securitypolicy`` now sets a ``forgotten`` value on the policy (the value ``True``) when its ``forget`` method is called. - The DummySecurityPolicy created by ``testing_securitypolicy`` now sets a ``remembered`` value on the policy, which is the value of the ``principal`` argument it's called with when its ``remember`` method is called.