This commit is contained in:
andis
2017-08-11 20:34:17 +02:00
parent 51acbfbd38
commit 81fa9cc575
10 changed files with 202 additions and 79 deletions

View File

@@ -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=""