Commit 8748c78e authored by Romain Bignon's avatar Romain Bignon

support all wiki pages names

parent 4f3b34eb
......@@ -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:
......
......@@ -37,8 +37,8 @@ class RedmineBrowser(BaseBrowser):
PAGES = {'%s/': IndexPage,
'%s/login': LoginPage,
'%s/my/page': MyPage,
'%s/projects/([\w-]+)/wiki/([\w_\-]+)/edit': WikiEditPage,
'%s/projects/[\w-]+/wiki/[\w_\-]*': WikiPage,
'%s/projects/([\w-]+)/wiki/([^\/]+)/edit': WikiEditPage,
'%s/projects/[\w-]+/wiki/[^\/]*': WikiPage,
}
def __init__(self, url, *args, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment