Commit 26580a3b authored by 's avatar

Merged minor fix to url() method from branch (error if uri is None)

parent 3bfd5ad2
......@@ -161,8 +161,10 @@ class CatalogAware:
__traceback_info__=(`uri`, `script_name`)
if script_name:
uri=filter(None, string.split(uri, script_name))[0]
if uri[0] != '/': uri = '/' + uri
uri=uri or '/'
if not uri:
uri = '/'
if uri[0] != '/':
uri = '/' + uri
return urllib.unquote(uri)
def summary(self, num=200):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment