コード例 #1
0
 def mail_from_name(self, do_encode=True):
     addr = self.context.from_addr
     name = parseaddr(addr)[0] or addr
     if do_encode:
         return encode(name, self.getMailingList())
     else:
         return name
コード例 #2
0
 def mail_from_name(self, do_encode=True):
     addr = self.context.from_addr
     name = parseaddr(addr)[0] or addr
     if do_encode:
         return encode(name, self.getMailingList())
     else:
         return name
コード例 #3
0
 def body(self):
     # XXX: We need to make this smarter to use blockquote for quotes
     # create html links for urls, and filter out email addresses of
     # portal/list members. Do we want to filter email addresses of
     # non-members?
     return obfct_de(
         escape(encode(self.context.body, self.getMailingList())))
コード例 #4
0
 def listDescription(self):
     """The Description of the list"""
     ml = self.getMailingList()
     if ml is not None:
         return encode(ml.description, ml)
     return ''
コード例 #5
0
 def Description(self):
     """An encoded description"""
     return encode(self.body[:50] + ' ...', self)
コード例 #6
0
 def Title(self):
     """An encoded title"""
     return obfct(encode(self.title, self))
コード例 #7
0
 def listAddress(self):
     """The list address"""
     ml = self.getMailingList()
     if ml is not None:
         return obfct_de(encode(ml.mailto, ml))
     return _(u'No address')
コード例 #8
0
 def listDescription(self):
     """The Description of the list"""
     ml = self.getMailingList()
     if ml is not None:
         return encode(ml.description, ml)
     return ''
コード例 #9
0
 def address(self):
     if not self.context.mailto:
         return u''
     return obfct_de(encode(self.context.mailto, self.context))
コード例 #10
0
 def Description(self):
     return encode(self.context.description, self.context)
コード例 #11
0
 def subject(self):
     return encode(self.context.subject, self.getMailingList())
コード例 #12
0
 def body(self):
     # XXX: We need to make this smarter to use blockquote for quotes
     # create html links for urls, and filter out email addresses of
     # portal/list members. Do we want to filter email addresses of
     # non-members?
     return obfct_de(escape(encode(self.context.body, self.getMailingList())))
コード例 #13
0
 def subject(self):
     return obfct_de(escape(encode(self.context.subject, self.getMailingList())))
コード例 #14
0
 def title(self):
     return encode(self.context.title, self.getMailingList())
コード例 #15
0
 def name(self):
     return encode(self.context.title, self.context)
コード例 #16
0
 def address(self):
     if not self.context.mailto:
         return u''
     return obfct_de(encode(self.context.mailto, self.context))
コード例 #17
0
 def listAddress(self):
     """The list address"""
     ml = self.getMailingList()
     if ml is not None:
         return obfct_de(encode(ml.mailto, ml))
     return _(u'No address')
コード例 #18
0
 def subject(self):
     return encode(self.context.subject, self.getMailingList())
コード例 #19
0
 def title(self):
     return encode(self.context.title, self.getMailingList())
コード例 #20
0
 def name(self):
     return encode(self.context.title, self.context)
コード例 #21
0
 def subject(self):
     return obfct_de(
         escape(encode(self.context.subject, self.getMailingList())))
コード例 #22
0
 def Title(self):
     """An encoded title"""
     return obfct(encode(self.title, self))
コード例 #23
0
 def Description(self):
     """An encoded description"""
     return encode(self.body[:50] + " ...", self)
コード例 #24
0
 def Description(self):
     return encode(self.context.description, self.context)