Force "escapeSlashes" argument to get content name ZTK-1.1
authorThierry Florac <tflorac@ulthar.net>
Sun, 10 Feb 2013 17:11:38 +0100
branchZTK-1.1
changeset 196 fb08f604db43
parent 195 8ac8b1696cb3
child 197 67242b459a6d
Force "escapeSlashes" argument to get content name
src/ztfy/utils/container.py
--- a/src/ztfy/utils/container.py	Sat Feb 09 15:16:36 2013 +0100
+++ b/src/ztfy/utils/container.py	Sun Feb 10 17:11:38 2013 +0100
@@ -32,7 +32,7 @@
     Target name will be suffixed with an index if base name already exists
     """
     if translate:
-        base_name = translateString(base_name, spaces='-')
+        base_name = translateString(base_name, escapeSlashes=True, spaces='-')
     if max_length:
         base_name = base_name[0:max_length]
     if base_name not in container: