git.ithinksw.org
/
philo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef0184b
)
Minor correction to LazyNode's use of subpath to avoid NameErrors.
author
Stephen Burrows
<stephen.r.burrows@gmail.com>
Thu, 3 Feb 2011 03:17:25 +0000
(22:17 -0500)
committer
Stephen Burrows
<stephen.r.burrows@gmail.com>
Thu, 3 Feb 2011 03:17:25 +0000
(22:17 -0500)
middleware.py
patch
|
blob
|
history
diff --git
a/middleware.py
b/middleware.py
index
832bd16
..
fa30ef6
100644
(file)
--- 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