Skip to content

Commit 605fa26

Browse files
committed
Made relative paths work for the create_group_wikis commnand. Added wiki and svn dir patterns to docker/settings_local.py.
- Legacy-Id: 13150
1 parent 3c8d101 commit 605fa26

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

docker/settings_local.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@
2525
USING_DEBUG_EMAIL_SERVER=True
2626
EMAIL_HOST='localhost'
2727
EMAIL_PORT=2025
28+
29+
TRAC_WIKI_DIR_PATTERN = "test/wiki/%s"
30+
TRAC_SVN_DIR_PATTERN = "test/svn/%s"

ietf/utils/management/commands/create_group_wikis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ def handle(self, *filenames, **options):
276276
self.svn_dir_pattern = options.get('svn_dir_pattern', settings.TRAC_SVN_DIR_PATTERN)
277277
self.group_list = options.get('group_list', None)
278278
self.dummy_run = options.get('dummy_run', False)
279+
self.wiki_dir_pattern = os.path.join(settings.BASE_DIR, '..', self.wiki_dir_pattern)
280+
self.svn_dir_pattern = os.path.join(settings.BASE_DIR, '..', self.svn_dir_pattern)
279281

280282
if not self.group_list is None:
281283
self.group_list = self.group_list.split('.')

0 commit comments

Comments
 (0)