From 7ae0c2522bbb2b026bc0370dbb1b1608f146137d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 5 Jan 2009 23:36:27 +0000 Subject: 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 `_) for more information. --- docs/api/url.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/api/url.rst (limited to 'docs/api/url.rst') diff --git a/docs/api/url.rst b/docs/api/url.rst new file mode 100644 index 000000000..d984dcc07 --- /dev/null +++ b/docs/api/url.rst @@ -0,0 +1,11 @@ +.. _url_module: + +:mod:`repoze.bfg.url` +--------------------- + +.. automodule:: repoze.bfg.url + + .. autofunction:: model_url + + .. autofunction:: urlencode + -- cgit v1.2.3