Made relative paths work for the create_group_wikis commnand. Added wiki and svn dir patterns to docker/settings_local.py.

- Legacy-Id: 13150
This commit is contained in:
Henrik Levkowetz 2017-03-27 17:07:48 +00:00
parent 3c8d101fe3
commit 605fa26ec3
2 changed files with 5 additions and 0 deletions

View file

@ -25,3 +25,6 @@ AGENDA_PATH = 'test/data/proceedings/'
USING_DEBUG_EMAIL_SERVER=True
EMAIL_HOST='localhost'
EMAIL_PORT=2025
TRAC_WIKI_DIR_PATTERN = "test/wiki/%s"
TRAC_SVN_DIR_PATTERN = "test/svn/%s"

View file

@ -276,6 +276,8 @@ class Command(BaseCommand):
self.svn_dir_pattern = options.get('svn_dir_pattern', settings.TRAC_SVN_DIR_PATTERN)
self.group_list = options.get('group_list', None)
self.dummy_run = options.get('dummy_run', False)
self.wiki_dir_pattern = os.path.join(settings.BASE_DIR, '..', self.wiki_dir_pattern)
self.svn_dir_pattern = os.path.join(settings.BASE_DIR, '..', self.svn_dir_pattern)
if not self.group_list is None:
self.group_list = self.group_list.split('.')