summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-10-09Remove comment.Chris McDonough
2009-10-09Use renderers.Chris McDonough
2009-10-09Fix tests in the face of renderers.Chris McDonough
Ditch integration tests.
2009-10-09Use renderers.Chris McDonough
2009-10-09Use renderers.Chris McDonough
2009-10-09Use renderers.Chris McDonough
2009-10-09Use renderers.Chris McDonough
2009-10-09view -> static directive.Chris McDonough
2009-10-09view -> static directive.Chris McDonough
2009-10-09route -> static directive.Chris McDonough
2009-10-09Protip from elpargo.Chris McDonough
2009-10-09Fix ordering.Chris McDonough
2009-10-09Fix comment.Chris McDonough
2009-10-04(no commit message)Chris McDonough
2009-09-30Use API to get routes.Chris McDonough
2009-09-30Don't do lookup if we're going to fail.Chris McDonough
2009-09-30Mention modwsgi.Chris McDonough
2009-09-30Put labels on arrows.Chris McDonough
2009-09-30- Add a diagram which explains the operation of the BFG router to theChris McDonough
"Router" narrative chapter.
2009-09-30- Describe "request-only" view calling conventions inside theChris McDonough
urldispatch narrative chapter, where it's most helpful.
2009-09-30Note.Chris McDonough
2009-09-30Fix.Chris McDonough
2009-09-30Add narrative docs about the append_slash_notfound_view.Chris McDonough
2009-09-30- For behavior like Django's ``APPEND_SLASH=True``, use theChris McDonough
``repoze.bfg.view.append_slash_notfound_view`` view as the Not Found view in your application. When this view is the Not Found view (indicating that no view was found), and any routes have been defined in the configuration of your application, if the value of ``PATH_INFO`` does not already end in a slash, and if the value of ``PATH_INFO`` *plus* a slash matches any route's path, do an HTTP redirect to the slash-appended PATH_INFO. Note that this will *lose* ``POST`` data information (turning it into a GET), so you shouldn't rely on this to redirect POST requests.
2009-09-30- The import of ``repoze.bfg.view.NotFound`` is deprecated in favor ofChris McDonough
``repoze.bfg.exceptions.NotFound``. The old location still functions, but emits a deprecation warning. - The import of ``repoze.bfg.security.Unauthorized`` is deprecated in favor of ``repoze.bfg.exceptions.Forbidden``. The old location still functions but emits a deprecation warning. The rename from ``Unauthorized`` to ``Forbidden`` brings parity to the the name of the exception and the system view it invokes when raised. - New ``repoze.bfg.exceptions`` module was created to house exceptions that were previously sprinkled through various modules. - An ``exceptions`` API chapter was added, documenting the new ``repoze.bfg.exceptions`` module.
2009-09-26Added missing word found by Stephen WaterburyCarlos de la Guardia
2009-09-24Merge jpenny changes.Chris McDonough
2009-09-24- Minor speedup of ``repoze.bfg.router.Router.__call__``.Chris McDonough
2009-09-24- Sped up ``repoze.bfg.traversal.ModelGraphTraverser:__call__``Chris McDonough
slightly.
2009-09-24(no commit message)Chris McDonough
2009-09-24Add traversal diagram.Chris McDonough
2009-09-23- Speed up ``repoze.bfg.url.model_url`` slightly.Chris McDonough
- Speed up ``repoze.bfg.url.route_url`` slightly.
2009-09-23Undo the last commit; it breaks tests (and KARL).Chris McDonough
2009-09-23- Speed up ``repoze.bfg.url.model_url`` slightly.Chris McDonough
- Speed up ``repoze.bfg.url.route_url`` slightly.
2009-09-23- Speed up ``repoze.bfg.traversal.model_path``.Chris McDonough
- Speed up ``repoze.bfg.traversal.model_path_tuple`` slightly. - Speed up ``repoze.bfg.traversal.traverse`` slightly. - In 0.8a7, the return value expected from an object implementing ``ITraverserFactory`` was changed from a sequence of values to a dictionary containing the keys ``context``, ``view_name``, ``subpath``, ``traversed``, ``virtual_root``, ``virtual_root_path``, and ``root``. Until now, old-style traversers which returned a sequence have continued to work but have generated a deprecation warning. In this release, traversers which return a sequence instead of a dictionary will no longer work.
2009-09-23FeaturesChris McDonough
-------- - Speed up ``repoze.bfg.encode.urlencode`` (nee' ``repoze.bfg.url.urlencode``) slightly. - Speed up ``repoze.bfg.traversal.model_path`` and ``repoze.bfg.traversal.model_path_tuple`` slightly. Internal -------- - Move ``repoze.bfg.traversal._url_quote`` into ``repoze.bfg.encode`` as ``url_quote``. Backwards Incompatibilities --------------------------- - We previously had a Unicode-aware wrapper for the ``urllib.urlencode`` function named ``repoze.bfg.url.urlencode`` which delegated to the stdlib function, but which marshalled all unicode values to utf-8 strings before calling the stdlib version. A newer replacement now lives in ``repoze.bfg.encode`` (old imports will still work). The replacement does not delegate to the stdlib. The replacement diverges from the stdlib implementation and the previous ``repoze.bfg.url`` url implementation inasmuch as its ``doseq`` argument is a decoy: it always behaves in the ``doseq=True`` way (which is the only sane behavior) for speed purposes. The old import location (``repoze.bfg.url.urlencode``) still functions and has not been deprecated.
2009-09-23- Speed up ``repoze.bfg.location.lineage`` slightly.Chris McDonough
2009-09-23Fix spelling.Chris McDonough
2009-09-23Prep for 1.1a4.Chris McDonough
2009-09-23Make sure we have multiview predicate dispatch ordering right.Chris McDonough
2009-09-23- On 64-bit Linux systems, views that were members of a multiviewChris McDonough
(orderings of views with predicates) were not evaluated in the proper order. Symptom: in a configuration that had two views with the same name but one with a ``request_method=POST`` predicate and one without, the one without the predicate would be called unconditionally (even if the request was a POST request). Thanks much to Sebastien Douche for providing the buildbots that pointed this out.
2009-09-22Use dictionary instead of DummySettings.Chris McDonough
2009-09-22Minor readability changes.Chris McDonough
2009-09-22__is_bfg_view__ -> __bfg_view_settings__Chris McDonough
2009-09-22Fix buildbot failures by sorting view actions.Chris McDonough
2009-09-21This can also raise ValueError.Chris McDonough
2009-09-21Minor speed tweak and coverage.Chris McDonough
2009-09-21Fix docs after updates.Chris McDonough
2009-09-20Minor speed tweaks.Chris McDonough
2009-09-20Remove comments.Chris McDonough