summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/fixtureapp/views.py
AgeCommit message (Collapse)Author
2009-01-18Merge "routesmapper branch" to trunk.Chris McDonough
2008-08-04 - Add a ``request_type`` attribute to the available attributes of aChris McDonough
``bfg:view`` configure.zcml element. This attribute will have a value which is a dotted Python path, pointing at an interface. If the request object implements this interface when the view lookup is performed, the appropriate view will be called. - Remove "template only" views. These were just confusing and were never documented.
2008-07-19 - The concept of "view factories" was removed in favor of alwaysChris McDonough
calling a view, which is a callable that returns a response directly (as opposed to returning a view). As a result, the ``factory`` attribute in the bfg:view ZCML statement has been renamed to ``view``. Various interface names were changed also. - ``render_template`` and ``render_transform`` no longer return a Response object. Instead, these return strings. The old behavior can be obtained by using ``render_template_to_response`` and ``render_transform_to_response``.
2008-07-14Render templates explicitly in views.Chris McDonough
2008-07-14And, just to maximally confuse Paul, come full circle, and don't require ↵Chris McDonough
that the template be spelled on the class, while still allowing us to pickle the registry actions.
2008-07-12Speculative: cause routers to accept an app_context (the zcml configuration ↵Chris McDonough
context), so we can later enable an app-local component registry.