summaryrefslogtreecommitdiff
path: root/docs/narr/viewconfig.rst
AgeCommit message (Collapse)Author
2016-11-19improve view decorator return type documentationMichael Merickel
Fixes #2770.
2016-09-29Clean up docstrings/narr docs from PR #2660Steve Piercy
- Closes #2768
2016-09-28derive exception views separately from normal viewsMichael Merickel
- previously the multiview was shared for both exception and hot-route, but now that we allow some exception-only views this needed to be separated - add ViewDeriverInfo.exception_only to detect exception views - do not prevent http_cache on exception views - optimize secured_view and csrf_view derivers to remove themselves from the view pipeline for exception views
2016-04-16In addition to CSRF token, verify the origin tooDonald Stufft
Add an additional layer of protection against CSRF by verifying the actual origin of the request in addition to the CSRF token. We only do this check on sites hosted behind HTTPS because only HTTPS sites have evidence to show that the Referrer header is not being spuriously removed by random middleware boxes.
2016-04-15Have Automatic CSRF on all unsafe HTTP methodsDonald Stufft
Instead of only protecting against unsafe POST requests, have the automatic CSRF protect on all methods which are not defined as "safe" by RFC2616.
2016-04-15Only Accept CSRF Tokens in headers or POST bodiesDonald Stufft
Previously `check_csrf_token` would allow passing in a CSRF token in through a the URL of a request. However this is a security issue because a CSRF token must not be allowed to leak, and URLs regularly get copy/pasted or otherwise end up leaking to the outside world.
2016-04-10cleanup some references in the docsMichael Merickel
2015-10-19resolve whitespace diff between master and 1.6-branchSteve Piercy
2015-10-12rewrap 79 colsSteve Piercy
2015-10-12minor grammar, wrap 79 colsSteve Piercy
2015-09-12Fix possessive form, from PR by @uralbashSteve Piercy
2015-06-06More idiomatic codeKiss György
2015-05-27add an example decorator showing a response being used unconditionallyMichael Merickel
2015-03-26fix out of date match_param docsMichael Merickel
2014-05-01fix #1253Michael Merickel
2014-02-10- Garden PR #1121Steve Piercy
2014-01-19update narrative docs about iterable decorator argumentMichael Merickel
2013-10-27Security APIs on pyramid.request.RequestMatt Russell
The pyramid.security Authorization API function has_permission is made available on the request. The pyramid.security Authentication API functions are now available as properties (unauthenticated_userid, authenticated_userid, effective_principals) and methods (remember_userid, forget_userid) on pyramid.request.Request. Backwards compatibility: For each of the APIs moved to request method or property, the original API in the pyramid.security module proxies to the request. Reworked tests to check module level b/c wrappers call through to mixins for each API. Tests that check no reg on request now do the right thing. Use a response callback to set the request headers for forget_userid and remember_userid. Update docs. Attempt to improve a documentation section referencing the pyramid.security.has_permission function in docs/narr/resources.rst Ensures backwards compatiblity for `pyramid.security.forget` and `pyramid.security.remember`.
2013-09-22try to clarify the docs to avoid "if '__main__'" confusionMichael Merickel
2013-09-22typoMichael Merickel
2013-09-02move docs section to a more appropriate placeChris McDonough
2013-08-13Merge remote-tracking branch 'origin/master' into docs.gettingstartedPaul Everitt
Conflicts: docs/index.rst docs/latexindex.rst setup.py
2013-08-12All wrapped up, pre-merge.Paul Everitt
2013-08-09"repetion" to "repetition"tisdall
2013-07-27Move .. versionadded:: 1.2 to end of ``match_param`` definition so that when ↵Steve Piercy
building PDF it does not pause and wait for user to hit RETURN. This is now consistent with other placements of this directive as well.
2013-07-24indicate version in which not_ was addedChris McDonough
2013-07-24add not_ predicate featureChris McDonough
2013-04-05fix some cross-referencesTshepang Lekhonkhobe
2013-04-01Fix reST markup and spelling of "hand"Catalin Iacob
2013-03-22remove unused ignore-next-block directiveTshepang Lekhonkhobe
2013-03-21Resolve conflict.Tres Seaver
2013-03-12Merge pull request #874 from tshepang/paragraphMichael Merickel
improve paragraph
2013-03-12Merge pull request #871 from tshepang/repetitionMichael Merickel
remove info that was given in the preceding paragraph
2013-03-12Merge pull request #896 from tshepang/consistencyMichael Merickel
consistency fixes
2013-03-12Merge pull request #890 from tshepang/miscMichael Merickel
miscellaneous doc improvements
2013-03-09consistencyTshepang Lekhonkhobe
2013-03-082.5 no longer supportedTshepang Lekhonkhobe
2013-03-06capitalizeTshepang Lekhonkhobe
2013-03-05grammar fixesTshepang Lekhonkhobe
2013-02-26improve paragraphTshepang Lekhonkhobe
2013-02-26grammarTshepang Lekhonkhobe
2013-02-25grammarTshepang Lekhonkhobe
2013-02-23this info was given in the preceding paragraphTshepang Lekhonkhobe
2013-01-30use the more appropriate directivesTshepang Lekhonkhobe
2013-01-06fix import typo in docsReed O'Brien
2013-01-01typoTshepang Lekhonkhobe
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-13add docs and changelog noteChris McDonough
2012-09-19A ``check_csrf`` view predicate was added. For example, you can now doChris McDonough
``config.add_view(someview, check_csrf=True)``. When the predicate is checked, if the ``csrf_token`` value in ``request.params`` matches the csrf token in the request's session, the view will be permitted to execute. Otherwise, it will not be permitted to execute.