Added wiki creation for groups in state 'bof'

- Legacy-Id: 13829
This commit is contained in:
Henrik Levkowetz 2017-07-11 16:06:00 +00:00
parent 567274c156
commit 95ddc35eae
2 changed files with 2 additions and 1 deletions

View file

@ -836,6 +836,7 @@ TRAC_SVN_DIR_PATTERN = "/a/svn/group/%s"
TRAC_SVN_URL_PATTERN = "https://svn.ietf.org/svn/group/%s/"
TRAC_CREATE_GROUP_TYPES = ['wg', 'rg', 'area', 'team', 'dir', 'ag', ]
TRAC_CREATE_GROUP_STATES = ['bof', 'active', ]
TRAC_CREATE_GROUP_ACRONYMS = ['iesg', 'iaoc', ]
SVN_PACKAGES = [

View file

@ -294,7 +294,7 @@ class Command(BaseCommand):
if not os.path.exists(os.path.dirname(self.svn_dir_pattern)):
raise CommandError('The SVN base direcory specified for the SVN directories (%s) does not exist.' % os.path.dirname(self.svn_dir_pattern))
gfilter = Q(type__slug__in=settings.TRAC_CREATE_GROUP_TYPES, state__slug='active')
gfilter = Q(type__slug__in=settings.TRAC_CREATE_GROUP_TYPES, state__slug__in=settings.TRAC_CREATE_GROUP_STATES)
gfilter |= Q(acronym__in=settings.TRAC_CREATE_GROUP_ACRONYMS)
groups = Group.objects.filter(gfilter).order_by('acronym')