# HG changeset patch # User k0s # Date 1257045432 14400 # Node ID 6a1c85adc6713972c18ca248215e7b6b153e09c6 # Parent e54a6405a496b5fc3e9d7a0b258798399eecaac2 fixing def link for cases of empty path diff -r e54a6405a496 -r 6a1c85adc671 bitsyblog/bitsyblog.py --- 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),