summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2015-10-20Rename default to value as necessaryBert JW Regeer
2015-10-20rendered_view is now part of the pipelineBert JW Regeer
This means that it can be overriden, and is no longer static. With great power comes great responsibility... This also allows the user to insert view derivations over the rendered_view. This would allow the same sort of functionality as the BeforeRenderer event, by allowing the derivation to modify the Response/dictionary that the view returned.
2015-10-20Add tests to verify we order stuff correctlyBert JW Regeer
Specifically we want to make sure that rendered_view always comes first, unless a user overrides it by name.
2015-10-20Weighs more than, or less than, is really confusing...Bert JW Regeer
So we adopt over/under from tweens. Now it becomes simple to think/reason about stuff again =)
2015-10-20Add tests for the value aspect of view_derivationsBert JW Regeer
2015-10-20View derivations get their name as a kwarg as a valueBert JW Regeer
Instead of passing in a default to the view derivation, we attempt to pull it out of the options kwarg, if that doesn't exist, then we pass in the default. This should make it simpler to program view derivations because now you don't need to check to see if the kwarg is different from the default.
2015-10-20options has to be a dictionaryBert JW Regeer
2015-10-20Change default to valueBert JW Regeer
2015-10-20There are two view derivations we can't do withoutBert JW Regeer
Specifically predicated_view and attr_wrapped_view exist for MultiView to function, without them the view machinery doesn't work. They aren't technically view derivations because they are just containers for some data that the view machinery requires.
2015-10-20Autowrap all derivationsBert JW Regeer
2015-10-20PEP 8Bert JW Regeer
2015-10-20Rename the rest of the **predicates to **view_optionsBert JW Regeer
2015-10-20Add options to the internal _derive_viewBert JW Regeer
This way we can use that in tests.
2015-10-20Add ViewDerivation integration testsBert JW Regeer
This is an integration test in the sense that it adds both a view derivation and then adds a view. That view is then tested to verify that it correctly returns and that the derivations haven't broken anything.
2015-10-20Rename predicates to view_optionsBert JW Regeer
We also use the previously defined names() method on PredicateList to fetch the list of predicates and pull out all predicate values into it's own dictionary. Then the rest of the values are the view options for the view derivations. At the moment we do not check if the options matches a valid view derivation. No seatbelts for view options.
2015-10-20PredicateList learns how to return the namesBert JW Regeer
This is required for future changes, where we need the list of predicate names.
2015-10-20Remove the DummySecurityPolicy tooBert JW Regeer
2015-10-20We don't need no DummyLoggerBert JW Regeer
2015-10-20Views in this test are not calledBert JW Regeer
2015-10-20Merge branch 'master' of github.com:Pylons/pyramid into ↵Bert JW Regeer
feature/configurable-view-deriver
2015-10-14Merge pull request #1976 from bertjwregeer/fix/python3.5Michael Merickel
Fix python 3.5 support
2015-10-14Merge pull request #1929 from jessedhillon/better-pshell-env-helpMichael Merickel
populate pshell's env_help with docstring of values
2015-10-14Merge pull request #1907 from mnaberez/circus-as-pserve-daemonize-replacementMichael Merickel
Mention Circus as a pserve --daemon replacement. Refs #1554, #1641
2015-10-11No cover a branchBert JW Regeer
2015-10-11Fix Python 3.5 supportBert JW Regeer
Python 3.5 inserts an extra stackframe when calling extract_traceback, this adds in a check to see if the last frame is this extra frame, and if so removes it. This doesn't affect any other version of Python.
2015-10-11fix broken testMichael Merickel
2015-10-11fix broken sortMichael Merickel
2015-10-11order shells alphabetically instead of prioritizing ipython/bpythonMichael Merickel
2015-10-11Merge pull request #1891 from sontek/use_entry_points_for_shellsMichael Merickel
Use entry points for pshell
2015-10-11removed default fall through when passed a specific shellJohn Anderson
2015-10-07populate pshell's env_help with docstring of valuesJesse Dhillon
2015-10-01Mention Circus as a pserve --daemon replacement. Refs #1554, #1641Mike Naberezny
2015-09-13fix broken testsMichael Merickel
2015-09-13deprecate pserve daemonizationMichael Merickel
2015-09-06Use entry points for pshellJohn Anderson
2015-08-31fix difference between py2 and py3 with base64.b64decodeMichael Merickel
2015-08-31Merge branch 'fixes/cookie_values' of bertjwregeer/pyramid into pull.1866Michael Merickel
2015-08-03base64 encode cookie valuesBert JW Regeer
This way they are valid according to the RFC, and newer versions of WebOb won't complain.
2015-08-03Fix Pyramid against WebOb >=1.5.0Bert JW Regeer
Due to changes in WebOb we may no longer create a Response() object with an invalid status (i.e. 'None None'). For the top-level HTTPException if it is not correctly overriden in child classes then we now use '520 Unknown Error'. While not an official RFC error, this has been used by Microsoft's Azure as well as CloudFlare to signify an error that doesn't have a more appropriate error message.
2015-06-11use input_ from p.compat, renamed optionIgor Stroh
- Use pyramid.compat.input_ instead of manually checking for python version and chosing the appropriate input/raw_input function - Renamed--force-conflicting-name option to --ignore-conflicting-name - Display invalid scaffold names in a sorted manner
2015-06-10added py2.6 compatibility, removed test for 'site'Igor Stroh
- Made sure str.format() calls are py2.6 compatible - Removed test_scaffolds/test_init.py#test_pre_site since the check is handled in pcreate script
2015-06-10make sure user input is py2.x/py3 compatibleIgor Stroh
- Use input() in python3 and raw_input in python 2.x - Remoced unused local variables
2015-06-10removed unused exceptionsIgor Stroh
2015-06-10handle conflicting project names gracefully, fixes: #1357Igor Stroh
- Check for importable packages/modules with the same name as the package to be created - Added --force-conflicting-name option to enforce the use of a conflicting package - Added appropriate tests
2015-06-09Merge pull request #1836 from Pylons/fix-1832-masterTres Seaver
Return concrete classes from 'pyramid.httpexceptions.exception_response'
2015-06-09Return concrete classes from 'pyramid.httpexceptions.exception_response'.Tres Seaver
The base classes are not appropriate for 400 and 500 status codes. See: #1832
2015-06-05We explicitly pass in the interfaces provided by the request asChris McDonough
request_iface to _call_view; we don't want _call_view to use request.request_iface, because render_view_to_response and friends are pretty much limited to finding views that are not views associated with routes, and the only thing request.request_iface is used for is to find route-based views. The render_view_to_response API is (and always has been) a stepchild API reserved for use of those who actually use traversal. Doing this fixes an infinite recursion bug introduced in Pyramid 1.6a1, and causes the render_view* APIs to behave as they did in 1.5 and previous. We should probably provide some sort of different API that would allow people to find views for routes. Fixes #1643.
2015-05-27add an example decorator showing a response being used unconditionallyMichael Merickel
2015-05-24update theme CSS files for wiki tutorialsSteve Piercy
2015-05-24cache bust tokenSteve Piercy