changeset 29:6a1c85adc671

fixing def link for cases of empty path
author k0s <k0scist@gmail.com>
date Sat, 31 Oct 2009 23:17:12 -0400
parents e54a6405a496
children 9be583a7731d
files bitsyblog/bitsyblog.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/bitsyblog.py	Sat Oct 31 23:04:20 2009 -0400
+++ b/bitsyblog/bitsyblog.py	Sat Oct 31 23:17:12 2009 -0400
@@ -404,7 +404,7 @@
 
     ### methods 
 
-    def link(self, request, path=(), permanant=False):
+    def link(self, request, path='', permanant=False):
         if isinstance(path, basestring):
             path = [ path ]
         path = [ i.strip('/') for i in path ]
@@ -556,7 +556,7 @@
     def site_nav(self, request):
         """returns HTML for site navigation"""
 
-        links = [(self.link(request), '/'), ]
+        links = [(self.link(request), '/')]
         user = self.authenticated(request)
         if user:
             links.extend([(self.user_url(request, user), user),