Chris McDonough
2010-09-08 74409d12f7eb085bc992a200cc74799e4d1ff355
refs
author Chris McDonough <chrism@agendaless.com>
Wednesday, September 8, 2010 06:25 +0200
committer Chris McDonough <chrism@agendaless.com>
Wednesday, September 8, 2010 06:25 +0200
commit74409d12f7eb085bc992a200cc74799e4d1ff355
tree 14b10948171be45b425f87122be156a7dc11c117 tree | zip | gz
parent 68469214646debcdcea662f34b41f41e0ae8db12 view | diff
- The ``repoze.bfg.urldispatch.Route`` constructor (not an API) now
accepts a different ordering of arguments. Previously it was
``(pattern, name, factory=None, predicates=())``. It is now
``(name, pattern, factory=None, predicates=())``. This is in
support of consistency with ``configurator.add_route``.

- The ``repoze.bfg.urldispatch.RoutesMapper.connect`` method (not an
API) now accepts a different ordering of arguments. Previously it
was ``(pattern, name, factory=None, predicates=())``. It is now
``(name, pattern, factory=None, predicates=())``. This is in
support of consistency with ``configurator.add_route``.

- The ``repoze.bfg.urldispatch.RoutesMapper`` object now has a
``get_route`` method which returns a single Route object or
``None``.

- A new interface ``repoze.bfg.interfaces.IRoute`` was added. The
``repoze.bfg.urldispatch.Route`` object implements this interface.

- The canonical attribute for accessing the routing pattern from a
route object is now ``pattern`` rather than ``path``.

- The argument to ``repoze.bfg.configuration.Configurator.add_route``
which was previously called ``path`` is now called ``pattern`` for
better explicability. For backwards compatibility purposes, passing
a keyword argument named ``path`` to ``add_route`` will still work
indefinitely.

- The ``path`` attribute to the ZCML ``route`` directive is now named
``pattern`` for better explicability. The older ``path`` attribute
will continue to work indefinitely.

- All narrative, API, and tutorial docs which referred to a route
pattern as a ``path`` have now been updated to refer to them as a
``pattern``.

- The routesalchemy template has been updated to use ``pattern`` in
its route declarations rather than ``path``.



22 files modified
712 ■■■■■ changed files
CHANGES.txt 48 ●●●●● diff | view | raw | blame | history
docs/narr/hybrid.rst 96 ●●●● diff | view | raw | blame | history
docs/narr/router.rst 6 ●●●● diff | view | raw | blame | history
docs/narr/urldispatch.rst 159 ●●●● diff | view | raw | blame | history
docs/narr/views.rst 2 ●●● diff | view | raw | blame | history
docs/tutorials/bfgwiki2/basiclayout.rst 2 ●●● diff | view | raw | blame | history
docs/tutorials/bfgwiki2/definingviews.rst 21 ●●●● diff | view | raw | blame | history
docs/tutorials/bfgwiki2/src/authorization/tutorial/configure.zcml 14 ●●●● diff | view | raw | blame | history
docs/tutorials/bfgwiki2/src/basiclayout/tutorial/configure.zcml 5 ●●●●● diff | view | raw | blame | history
docs/tutorials/bfgwiki2/src/models/tutorial/configure.zcml 5 ●●●●● diff | view | raw | blame | history
docs/tutorials/bfgwiki2/src/views/tutorial/configure.zcml 10 ●●●● diff | view | raw | blame | history
docs/zcml/route.rst 43 ●●●●● diff | view | raw | blame | history
repoze/bfg/configuration.py 42 ●●●●● diff | view | raw | blame | history
repoze/bfg/interfaces.py 45 ●●●●● diff | view | raw | blame | history
repoze/bfg/paster_templates/routesalchemy/+package+/configure.zcml 2 ●●● diff | view | raw | blame | history
repoze/bfg/testing.py 8 ●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_configuration.py 11 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_router.py 24 ●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_urldispatch.py 69 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_zcml.py 62 ●●●● diff | view | raw | blame | history
repoze/bfg/urldispatch.py 21 ●●●● diff | view | raw | blame | history
repoze/bfg/zcml.py 17 ●●●● diff | view | raw | blame | history