Chris McDonough
2009-01-06 7ae0c2522bbb2b026bc0370dbb1b1608f146137d
refs
author Chris McDonough <chrism@agendaless.com>
Tuesday, January 6, 2009 00:36 +0100
committer Chris McDonough <chrism@agendaless.com>
Tuesday, January 6, 2009 00:36 +0100
commit7ae0c2522bbb2b026bc0370dbb1b1608f146137d
tree d46aa3e872eaf70d900af720b7458efd2ed0a189 tree | zip | gz
parent 96d8a517bf195a1ce0787e6ec16c3db82bef98f5 view | diff
  New Modules

- A new module ``repoze.bfg.url`` has been added. It contains the
``model_url`` API (moved from ``repoze.bfg.traversal``) and an
implementation of ``urlencode`` (like Python's
``urllib.urlencode``) which can handle Unicode keys and values in
parameters to the ``query`` argument.

Deprecations

- The ``model_url`` function has been moved from
``repoze.bfg.traversal`` into ``repoze.bfg.url``. It can still
be imported from ``repoze.bfg.traversal`` but an import from
``repoze.bfg.traversal`` will emit a DeprecationWarning.

Features

- The ``repoze.bfg.url.model_url`` API (nee'
``repoze.bfg.traversal.model_url``) now accepts and honors a
keyword argument named ``query``. The value of this argument
will be used to compose a query string, which will be attached to
the generated URL before it is returned. See the API docs (in
the docs directory or `on the web
<http://static.repoze.org/bfgdocs>`_) for more information.


3 files added
5 files modified
574 ■■■■■ changed files
CHANGES.txt 29 ●●●●● diff | view | raw | blame | history
docs/api/traversal.rst 4 ●●●● diff | view | raw | blame | history
docs/api/url.rst 11 ●●●●● diff | view | raw | blame | history
docs/index.rst 1 ●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_traversal.py 80 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_url.py 134 ●●●●● diff | view | raw | blame | history
repoze/bfg/traversal.py 141 ●●●● diff | view | raw | blame | history
repoze/bfg/url.py 174 ●●●●● diff | view | raw | blame | history