gallery.py: Keyword text argument the directory-header crumbs
authorW. Trevor King <wking@tremily.us>
Thu, 14 Aug 2014 23:23:47 +0000 (16:23 -0700)
committerW. Trevor King <wking@tremily.us>
Thu, 14 Aug 2014 23:26:08 +0000 (16:26 -0700)
'Gallery' is the text, not the query, for that link ;).

posts/gallery/gallery.py

index 760768fa7d76eb0a966170ae83cbfb97281cdf4f..36346900fd375dafdc912f9bd379a2f4eb684a38 100755 (executable)
@@ -629,7 +629,7 @@ class CGIGalleryServer (object):
         for i,c in enumerate(crumbs):
             if i < len(crumbs)-1:
                 if i == 0:
-                    links[i] = self._link(self._base_path, 'Gallery')
+                    links[i] = self._link(path=self._base_path, text='Gallery')
                 else:
                     relpath = '/'.join(crumbs[1:i+1]) + '/'
                     fullpath = _os_path.join(self._base_path, relpath)