support all wiki pages names
This commit is contained in:
parent
bc8d8f51a6
commit
5cd8d92274
2 changed files with 3 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue