div tzg
This commit is contained in:
@@ -29,16 +29,19 @@ class MailThread(Base):
|
||||
opened = Column(Boolean)
|
||||
body = Column(Text)
|
||||
maintopic=Column(String)
|
||||
lang=Column(String)
|
||||
answered=Column(String)
|
||||
__schema__=FullThreadSchema
|
||||
__jsonid__='thread'
|
||||
__whiteattrs__= ["body"]
|
||||
__jsonattrs__=None
|
||||
answered=False
|
||||
# answered=False
|
||||
# maintopic="information"
|
||||
lang=""
|
||||
# lang=""
|
||||
def bdy(self):
|
||||
return yaml.load(self.body)
|
||||
|
||||
def is_answered(self):
|
||||
return self.answered in ["1", "true", "True", "t","T"]
|
||||
def to_text(self):
|
||||
mmm=self.mails()
|
||||
txt=""
|
||||
|
||||
Reference in New Issue
Block a user