Chris McDonough
2011-02-10 fcbd7bfe4e777d39cb56a851fc3bbf61e97d536e
refs
author Chris McDonough <chrism@plope.com>
Thursday, February 10, 2011 00:25 +0100
committer Chris McDonough <chrism@plope.com>
Thursday, February 10, 2011 00:25 +0100
commitfcbd7bfe4e777d39cb56a851fc3bbf61e97d536e
tree 8d87adacc2dff4a54d2a54aff7711b0f273c4fcb tree | zip | gz
parent b371775f0c9ae7576042d9c5637fa6c028d62035 view | diff
- Integers and longs passed as ``elements`` to ``pyramid.url.resource_url``
or ``pyramid.request.Request.resource_url`` e.g. ``resource_url(context,
request, 1, 2)`` (``1`` and ``2`` are the ``elements``) will now be
converted implicitly to strings in the result. Previously passing integers
or longs as elements would cause a TypeError.

Closes #124
4 files modified
41 ■■■■ changed files
CHANGES.txt 9 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_traversal.py 20 ●●●●● diff | view | raw | blame | history
pyramid/traversal.py 2 ●●● diff | view | raw | blame | history
pyramid/url.py 10 ●●●●● diff | view | raw | blame | history