Commits

Thomas Waldmann committed 5db17e1

router: fix some more places to use colon, not slash

  • Participants
  • Parent commits 03efad0
  • Branches storage-ng

Comments (0)

Files changed (2)

File MoinMoin/storage/middleware/_tests/test_routing.py

     return router
 
 def revid_split(revid):
-    # router revids are <backend_mountpoint>/<backend_revid>, split that:
-    return revid.rsplit(u'/', 1)
+    # router revids are <backend_mountpoint>:<backend_revid>, split that:
+    return revid.rsplit(u':', 1)
 
 def test_store_get_del(router):
     root_name = u'foo'

File MoinMoin/storage/middleware/routing.py

         return u'%s:%s' % (mountpoint, backend.store(meta, data))
 
     def remove(self, revid):
-        mountpoint, revid = revid.rsplit(u'/', 1)
+        mountpoint, revid = revid.rsplit(u':', 1)
         backend = self._get_backend(mountpoint)[0]
         if not isinstance(backend, MutableBackendBase):
             raise TypeError('backend %r mounted at %r is readonly' % (