changeset 1025:81d30cb55b68

merge
author "Luis Henrique Fagundes <lhfagundes@gmail.com>"
date Sun, 30 Oct 2011 20:04:18 -0200
parents 0849d0697d31 (current diff) f9f1170c273e (diff)
children 5f93a84e125f
files
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/middleware/routing.py	Sun Oct 30 05:14:40 2011 -0200
+++ b/MoinMoin/storage/middleware/routing.py	Sun Oct 30 20:04:18 2011 -0200
@@ -79,7 +79,11 @@
         backend, _, mountpoint = self._get_backend(name)
         meta, data = backend.retrieve(revid)
         if mountpoint:
-            meta[NAME] = u'{0}/{1}'.format(mountpoint, meta[NAME])
+            name = meta[NAME]
+            if name:
+                meta[NAME] = u'{0}/{1}'.format(mountpoint, meta[NAME])
+            else:
+                meta[NAME] = mountpoint # no trailing slash!
         return meta, data
 
     # writing part