VirtualMailManager/EmailAddress.py
branchv0.6.x
changeset 290 e2785e04f92e
parent 254 8aecc83a0d32
child 316 31d8931dc535
equal deleted inserted replaced
289:142f188f7552 290:e2785e04f92e
    93         raise EAErr(_(u"The local-part '%s' is too long") % localpart,
    93         raise EAErr(_(u"The local-part '%s' is too long") % localpart,
    94                     LOCALPART_TOO_LONG)
    94                     LOCALPART_TOO_LONG)
    95     invalid_chars = set(RE_LOCALPART.findall(localpart))
    95     invalid_chars = set(RE_LOCALPART.findall(localpart))
    96     if invalid_chars:
    96     if invalid_chars:
    97         i_chars = u''.join((u'"%s" ' % c for c in invalid_chars))
    97         i_chars = u''.join((u'"%s" ' % c for c in invalid_chars))
    98         raise EAErr(_(u"The local-part '%(l_part)s' contains invalid \
    98         raise EAErr(_(u"The local-part '%(l_part)s' contains invalid "
    99 characters: %(i_chars)s") %
    99                       u"characters: %(i_chars)s") % {'l_part': localpart,
   100                     {'l_part': localpart, 'i_chars': i_chars},
   100                     'i_chars': i_chars}, LOCALPART_INVALID)
   101                     LOCALPART_INVALID)
       
   102     return localpart
   101     return localpart
   103 
   102 
   104 
   103 
   105 del _
   104 del _