changeset 867:5db17e17624b storage-ng

router: fix some more places to use colon, not slash
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 25 Sep 2011 14:23:17 +0200
parents 03efad0ebc90
children 8cf8ea7431ca
files MoinMoin/storage/middleware/_tests/test_routing.py MoinMoin/storage/middleware/routing.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/middleware/_tests/test_routing.py	Sun Sep 25 13:39:42 2011 +0200
+++ b/MoinMoin/storage/middleware/_tests/test_routing.py	Sun Sep 25 14:23:17 2011 +0200
@@ -47,8 +47,8 @@
     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'
--- a/MoinMoin/storage/middleware/routing.py	Sun Sep 25 13:39:42 2011 +0200
+++ b/MoinMoin/storage/middleware/routing.py	Sun Sep 25 14:23:17 2011 +0200
@@ -106,7 +106,7 @@
         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' % (