Commits

Thomas Waldmann  committed 653f12d

use colon to separate mountpoint from revid, not slash which makes it look like a path in the url

  • Participants
  • Parent commits d421f07
  • Branches storage-ng

Comments (0)

Files changed (1)

File MoinMoin/storage/middleware/routing.py

         #       can be given to get_revision and be routed to the right backend.
         for mountpoint, backend in self.mapping:
             for revid in backend:
-                yield u'%s/%s' % (mountpoint, revid)
+                yield u'%s:%s' % (mountpoint, revid)
 
     def retrieve(self, revid):
-        mountpoint, revid = revid.rsplit(u'/', 1)
+        mountpoint, revid = revid.rsplit(u':', 1)
         backend = self._get_backend(mountpoint)[0]
         meta, data = backend.retrieve(revid)
         if mountpoint:
             raise TypeError('backend %r mounted at %r is readonly' % (
                 backend, mountpoint))
         meta[NAME] = itemname
-        return u'%s/%s' % (mountpoint, backend.store(meta, data))
+        return u'%s:%s' % (mountpoint, backend.store(meta, data))
 
     def remove(self, revid):
         mountpoint, revid = revid.rsplit(u'/', 1)