Merged in [15356] from ben@nostrum.com:
Change newlines to commas in to contacts for new liaison email notification. Fixes issue 2525.
- Legacy-Id: 15400
Note: SVN reference [15356] has been migrated to Git commit f8853fa468
This commit is contained in:
commit
a66285129c
|
@ -276,12 +276,22 @@ class LiaisonModelForm(BetterModelForm):
|
|||
raise forms.ValidationError('Email address does not exist')
|
||||
return email
|
||||
|
||||
# Note to future person: This is the wrong place to fix the new lines
|
||||
# in cc_contacts and to_contacts. Those belong in the save function.
|
||||
# Or at least somewhere other than here.
|
||||
def clean_cc_contacts(self):
|
||||
'''Return a comma separated list of addresses'''
|
||||
cc_contacts = self.cleaned_data.get('cc_contacts')
|
||||
cc_contacts = cc_contacts.replace('\r\n',',')
|
||||
cc_contacts = cc_contacts.rstrip(',')
|
||||
return cc_contacts
|
||||
## to_contacts can also have new lines
|
||||
def clean_to_contacts(self):
|
||||
'''Return a comma separated list of addresses'''
|
||||
to_contacts = self.cleaned_data.get('to_contacts')
|
||||
to_contacts = to_contacts.replace('\r\n',',')
|
||||
to_contacts = to_contacts.rstrip(',')
|
||||
return to_contacts
|
||||
|
||||
def clean(self):
|
||||
if not self.cleaned_data.get('body', None) and not self.has_attachments():
|
||||
|
|
|
@ -883,7 +883,7 @@ TRAC_ISSUE_URL_PATTERN = "https://trac.ietf.org/trac/%s/report/1"
|
|||
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', 'review', 'ag', ]
|
||||
TRAC_CREATE_GROUP_TYPES = ['wg', 'rg', 'area', 'team', 'dir', 'review', 'ag', 'nomcom', ]
|
||||
TRAC_CREATE_GROUP_STATES = ['bof', 'active', ]
|
||||
TRAC_CREATE_GROUP_ACRONYMS = ['iesg', 'iaoc', 'ietf', ]
|
||||
TRAC_CREATE_ADHOC_WIKIS = [
|
||||
|
|
Loading…
Reference in a new issue