lib/utils.py
changeset 20 6c774496bb00
parent 19 8d3ffd87cb0b
child 23 10841abbc01f
--- a/lib/utils.py	Wed Jan 16 14:58:03 2008 +0000
+++ b/lib/utils.py	Wed Jan 16 16:28:00 2008 +0000
@@ -47,8 +47,9 @@
 def url (*parts, **kwargs) :
     abs = kwargs.pop('abs', False)
     up = kwargs.pop('up', 0)
+    trailing = kwargs.pop('trailing', False)
     
-    return '/'.join(([""]*int(abs)) + ([".."]*up) + list(parts))
+    return '/'.join(([""]*int(abs)) + ([".."]*up) + list(parts) + ([""]*int(trailing)))
 
 url_join = url