예제 #1
0
 def email_address_header(self):
     h = header.Header()
     h.append(
         '"%s"%s' % (self.get_pref('display_name'), ' ' if six.PY2 else '')
     )  # py2 needs explicit space for unicode/text_type cast of Header
     h.append('<%s>' % self.get_pref('email_address'))
     return h
예제 #2
0
파일: auth.py 프로젝트: xmonader/allura
 def email_address_header(self):
     h = header.Header()
     h.append('"%s" ' % self.get_pref('display_name'))
     h.append('<%s>' % self.get_pref('email_address'))
     return h
예제 #3
0
 def email_address_header(self):
     h = header.Header()
     h.append(u'"%s" ' % self.get_pref('display_name'))
     h.append(u'<%s>' % self.get_pref('email_address'))
     return h
예제 #4
0
 def email_address_header(self):
     h = header.Header()
     h.append(u'"%s" ' % self.get_pref("display_name"))
     h.append(u"<%s>" % self.get_pref("email_address"))
     return h