- Replace the statement ``path = path.rstrip('/').lstrip('/')`` with
the simpler ``path = path.strip('/')`` in the
``repoze.bfg.traversal.traversal_path`` function.
| | |
| | | ``bfg_alchemy`` application template's ``MyApp`` model was an |
| | | integer. This was incorrect. It is now a string. |
| | | |
| | | Internal |
| | | -------- |
| | | |
| | | - Replace the statement ``path = path.rstrip('/').lstrip('/')`` with |
| | | the simpler ``path = path.strip('/')`` in the |
| | | ``repoze.bfg.traversal.traversal_path`` function. |
| | | |
| | | 1.2 (2010-02-10) |
| | | ================ |
| | | |
| | |
| | | their own traversal machinery, as opposed to users |
| | | writing applications in :mod:`repoze.bfg`. |
| | | """ |
| | | path = path.rstrip('/') |
| | | path = path.lstrip('/') |
| | | path = path.strip('/') |
| | | clean = [] |
| | | for segment in path.split('/'): |
| | | segment = urllib.unquote(segment) # deal with spaces in path segment |