Mercurial > hg > bitsyblog
comparison bitsyblog/bitsyblog.py @ 131:2d944e8f24e9
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 28 Dec 2020 19:22:23 +0000 |
parents | fbcbcd36329e |
children |
comparison
equal
deleted
inserted
replaced
130:fbcbcd36329e | 131:2d944e8f24e9 |
---|---|
441 return name, path | 441 return name, path |
442 | 442 |
443 ### methods for linking and URLs | 443 ### methods for linking and URLs |
444 | 444 |
445 def link(self, request, path='', permanant=False): | 445 def link(self, request, path='', permanant=False): |
446 if isinstance(path, basestring): | 446 if isinstance(path, str): |
447 path = [ path ] | 447 path = [path] |
448 if not path: | 448 if not path: |
449 path = [''] | 449 path = [''] |
450 path = [ i.strip('/') for i in path ] | 450 path = [ i.strip('/') for i in path ] |
451 if permanant: | 451 if permanant: |
452 application_url = request.application_url | 452 application_url = request.application_url |