comparison bitsyblog/bitsyblog.py @ 48:3fe54d84b9be

fix error with single user blog mounted at /
author k0s <k0scist@gmail.com>
date Sat, 26 Dec 2009 13:08:10 -0500
parents 4b01f5bc84e6
children cf77bd13aad9
comparison
equal deleted inserted replaced
47:f2b8204237dc 48:3fe54d84b9be
401 ### methods for linking and URLs 401 ### methods for linking and URLs
402 402
403 def link(self, request, path='', permanant=False): 403 def link(self, request, path='', permanant=False):
404 if isinstance(path, basestring): 404 if isinstance(path, basestring):
405 path = [ path ] 405 path = [ path ]
406 if not path:
407 path = ['']
406 path = [ i.strip('/') for i in path ] 408 path = [ i.strip('/') for i in path ]
407 if permanant: 409 if permanant:
408 application_url = request.application_url 410 application_url = request.application_url
409 else: 411 else:
410 412