From: Stephen Burrows Date: Thu, 3 Feb 2011 03:17:25 +0000 (-0500) Subject: Minor correction to LazyNode's use of subpath to avoid NameErrors. X-Git-Tag: philo-0.9~21^2~5 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/8aad28a2a098d4f6c0401070e28081c55d8d1e6e Minor correction to LazyNode's use of subpath to avoid NameErrors. --- diff --git a/middleware.py b/middleware.py index 832bd16..fa30ef6 100644 --- a/middleware.py +++ b/middleware.py @@ -20,11 +20,10 @@ class LazyNode(object): except Node.DoesNotExist: node = None - if subpath is None: - subpath = "" - subpath = "/" + subpath - if node: + if subpath is None: + subpath = "" + subpath = "/" + subpath node.subpath = subpath request._found_node = node