git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates to gilbert. Reorganizing imports and removing support for python < 2.5.4.
[philo.git]
/
views.py
diff --git
a/views.py
b/views.py
index
f5a2c7f
..
598be36
100644
(file)
--- a/
views.py
+++ b/
views.py
@@
-28,7
+28,7
@@
def node_view(request, path=None, **kwargs):
subpath = request.node.subpath
# Explicitly disallow trailing slashes if we are otherwise at a node's url.
subpath = request.node.subpath
# Explicitly disallow trailing slashes if we are otherwise at a node's url.
- if request.
path and request.path != "/" and request.
path[-1] == "/" and subpath == "/":
+ if request.
_cached_node_path != "/" and request._cached_node_
path[-1] == "/" and subpath == "/":
return HttpResponseRedirect(node.get_absolute_url())
if not node.handles_subpath(subpath):
return HttpResponseRedirect(node.get_absolute_url())
if not node.handles_subpath(subpath):