예제 #1
0
 def _get_content_id(self):
     if self.content_id is not None:
         if isinstance(self.content_id, etree.CDATA):
             return CommonMethods.cdata_unwrap(self.content_id)
         return self.content_id
     return str()
 def _get_comments(self):
     if isinstance(self.comments, etree.CDATA):
         return CommonMethods.cdata_unwrap(self.comments)
     return self.comments
 def _get_keywords(self):
     if isinstance(self.keywords, etree.CDATA):
         return CommonMethods.cdata_unwrap(self.keywords)
     return self.keywords
 def _get_subject(self):
     if isinstance(self.subject, etree.CDATA):
         return CommonMethods.cdata_unwrap(self.subject)
     return self.subject
 def _get_references(self):
     if isinstance(self.references, etree.CDATA):
         return CommonMethods.cdata_unwrap(self.references)
     return self.references
 def _get_in_reply_to(self):
     if isinstance(self.in_reply_to, etree.CDATA):
         return CommonMethods.cdata_unwrap(self.in_reply_to)
     return self.in_reply_to
 def _get_sender(self):
     if isinstance(self.sender, etree.CDATA):
         return CommonMethods.cdata_unwrap(self.sender)
     return self.sender
 def _get_bcc(self):
     if isinstance(self.bcc, etree.CDATA):
         return CommonMethods.cdata_unwrap(self.bcc)
     return self.bcc
 def _get_from(self):
     if isinstance(self.m_from, etree.CDATA):
         return CommonMethods.cdata_unwrap(self.m_from)
     return self.m_from
 def _get_message_id(self):
     if isinstance(self.message_id, etree.CDATA):
         return CommonMethods.cdata_unwrap(self.message_id)
     return self.message_id