Removed trailing_pathsep support from TreeManager.get_with_path. Set nodes to have...
[philo.git] / middleware.py
index 832bd16..fa30ef6 100644 (file)
@@ -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