summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2012-01-11Updated the changelogs.Michael Merickel
2012-01-11Added config.set_request_property().Michael Merickel
This is a wrapper around request.set_property() which provides conflict detection for addons.
2012-01-11Renamed the func to callable in the docs.Michael Merickel
2012-01-06- The ``path_info`` route and view predicates now match againstChris McDonough
``request.upath_info`` (Unicode) rather than ``request.path_info`` (indeterminate value based on Python 3 vs. Python 2). This has to be done to normalize matching on Python 2 and Python 3.
2012-01-06add tests for different kinds of namesChris McDonough
2012-01-06- The ``pyramid.view.view_defaults`` decorator did not work properly whenChris McDonough
more than one view relied on the defaults being different for configuration conflict resolution. See https://github.com/Pylons/pyramid/issues/394. Closes #394.
2012-01-05coverageChris McDonough
2012-01-05fix test on py3Chris McDonough
2012-01-05coverageChris McDonough
2012-01-05fix test failures on python 3Chris McDonough
2012-01-05- Using a dynamic segment named ``traverse`` in a route pattern like this::Chris McDonough
config.add_route('trav_route', 'traversal/{traverse:.*}') Would cause a ``UnicodeDecodeError`` when the route was matched and the matched portion of the URL contained any high-order characters. See also https://github.com/Pylons/pyramid/issues/385 .
2012-01-05bring docs up to date with codeChris McDonough
2012-01-05- String values passed to ``route_url`` or ``route_path`` that are meant toChris McDonough
replace "remainder" matches will now be URL-quoted except for embedded slashes. For example:: config.add_route('remain', '/foo*remainder') request.route_path('remain', remainder='abc / def') # -> '/foo/abc%20/%20def' Previously string values passed as remainder replacements were tacked on untouched, without any URL-quoting. But this doesn't really work logically if the value passed is Unicode (raw unicode cannot be placed in a URL or in a path) and it is inconsistent with the rest of the URL generation machinery if the value is a string (it won't be quoted unless by the caller). Some folks will have been relying on the older behavior to tack on query string elements and anchor portions of the URL; sorry, you'll need to change your code to use the ``_query`` and/or ``_anchor`` arguments to ``route_path`` or ``route_url`` to do this now. - If you pass a bytestring that contains non-ASCII characters to ``add_route`` as a pattern, it will now fail at startup time. Use Unicode instead.
2012-01-05add test for pattern and match value having high-order characters in a traverse=Chris McDonough
2012-01-05fix urldispatch matching and generation to cope with various inputsChris McDonough
2012-01-04Merge branch '1.3-branch' into pathinfogeddonChris McDonough
2012-01-04more usage of traversal_path_info fixedChris McDonough
2012-01-04remove dependency on pysqlite from all scaffolding on platforms lt 2.6Chris McDonough
2012-01-04merge from masterChris McDonough
2012-01-04more speculative changes regarding matchingChris McDonough
2012-01-04remove dependencies related to python 2.5 in alchemy scaffoldBruno Binet
now that Pyramid requires python >= 2.6, these 2.5 dependencies are useless
2012-01-04untested workChris McDonough
2012-01-03- The documentation of ``pyramid.events.subscriber`` indicated that using itChris McDonough
as a decorator with no arguments like this:: @subscriber() def somefunc(event): pass Would register ``somefunc`` to receive all events sent via the registry, but this was untrue. Instead, it would receive no events at all. This has now been fixed and the code matches the documentation. See also https://github.com/Pylons/pyramid/issues/386 Closes #386
2012-01-02- Use the ``waitress`` WSGI server instead of ``wsgiref`` in scaffolding.Chris McDonough
2011-12-30Added the InstancePropertyMixin to the Request.Michael Merickel
The new mixin allows adding properties to the request object which are lazily evaluated.
2011-12-28typoChris McDonough
2011-12-21merge master to 1.3 branchChris McDonough
2011-12-21- Add undocumented ``__discriminator__`` API to derived view callables.Chris McDonough
e.g. ``adapters.lookup(...).__discriminator__(context, request)``. It will be used by superdynamic systems that require the discriminator to be used for introspection after manual view lookup.
2011-12-16- Allow prequest path to have query string variables.Chris McDonough
2011-12-15- Normalized exit values and ``-h`` output for all ``p*`` scriptsChris McDonough
(``pviews``, ``proutes``, etc).
2011-12-15Merge branch 'feature.prequest' into 1.3-branchChris McDonough
2011-12-15finish prequest featureChris McDonough
2011-12-15Merge branch 'master' into 1.3-branchChris McDonough
2011-12-15add prequest script and entry pointChris McDonough
2011-12-15Merge pull request #376 from jinty/masterChris McDonough
Fix typo in log message
2011-12-15Fix typo in log messageBrian Sutherland
authenticated_userid -> unauthenticated_userid
2011-12-14- Changed scaffolding machinery around a bit to make it easier for people whoChris McDonough
want to have extension scaffolds that can work across Pyramid 1.0.X, 1.1.X, 1.2.X and 1.3.X. See the new "Creating Pyramid Scaffolds" chapter in the narrative documentation for more info. - Added an API docs chapter for ``pyramid.scaffolds``. - Added a narrative docs chapter named "Creating Pyramid Scaffolds". - The ``template_renderer`` method of ``pyramid.scaffolds.PyramidScaffold`` was renamed to ``render_template``. If you were overriding it, you're a bad person, because it wasn't an API before now. But we're nice so we're letting you know.
2011-12-14add a backwards compatibility knob to pcreate to emulate paster create ↵Chris McDonough
handling of --list-templates
2011-12-14Flesh out new view_defaults feature and add docs, change notes, and add to ↵Chris McDonough
whatsnew.
2011-12-14add view_defaults class decorator; fix mutability bug with __view_defaults__Chris McDonough
2011-12-12first cut at __view_defaults__ featureChris McDonough
2011-12-10fix docs renderingChris McDonough
2011-12-09fix links againChris McDonough
2011-12-09basic instructionsChris McDonough
2011-12-09fix template linksChris McDonough
2011-12-09add static views introspection categoryChris McDonough
2011-12-08use note instead of warningChris McDonough
2011-12-08commentChris McDonough
2011-12-08coverage and avoid whining on py27/py32 about failUnlessChris McDonough
2011-12-08provide caller_path support for both asset resolver and dotted name ↵Chris McDonough
resolver, make it the default