From c25c8d8c984c9931d464229d51060e4378a0623c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 23 Jun 2016 14:34:37 -0700 Subject: [PATCH] forms: Wrap some very long lines. --- zerver/forms.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/zerver/forms.py b/zerver/forms.py index 14f99aef66..bbbe1f88fa 100644 --- a/zerver/forms.py +++ b/zerver/forms.py @@ -26,9 +26,13 @@ SIGNUP_STRING = u'Your e-mail does not match any existing open organization. ' + if settings.ZULIP_COM: SIGNUP_STRING = u'Your e-mail does not match any existing organization.
' + \ u"The zulip.com service is not taking new customer teams.
" + \ - u"Zulip is open source, so you can install your own Zulip server " + \ + u"" + \ + u"Zulip is open source, so you can install your own Zulip server " + \ u"by following the instructions on www.zulip.org!" - +MIT_VALIDATION_ERROR = u'That user does not exist at MIT or is a ' + \ + u'mailing list. ' + \ + u'If you want to sign up an alias for Zulip, ' + \ + u'contact us.' def get_registration_string(domain): # type: (text_type) -> text_type @@ -54,7 +58,7 @@ def not_mit_mailing_list(value): return True except DNS.Base.ServerError as e: if e.rcode == DNS.Status.NXDOMAIN: - raise ValidationError(mark_safe(u'That user does not exist at MIT or is a mailing list. If you want to sign up an alias for Zulip, contact us.')) + raise ValidationError(mark_safe(MIT_VALIDATION_ERROR)) else: raise return True