support all wiki pages names

This commit is contained in:
Romain Bignon 2011-05-29 23:29:08 +02:00
commit 5cd8d92274
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ class WebContentEdit(ReplApplication):
editor = os.environ.get('EDITOR', 'vim')
if editor == 'vim':
params = '-p'
os.system("%s %s %s" % (editor, params, ' '.join(paths.iterkeys())))
os.system("%s %s %s" % (editor, params, ' '.join(['"%s"' % path.replace('"', '\\"') for path in paths.iterkeys()])))
for path, content in paths.iteritems():
with open(path, 'r') as f: