refactor1
This commit is contained in:
@@ -128,10 +128,14 @@ class Mail(Base):
|
||||
self.text= yaml.dump(b4.get_text())
|
||||
else:
|
||||
self.text =yaml.dump( pl)
|
||||
def print_head(self):
|
||||
fr=yaml.load(self.from_)
|
||||
return "Gesendet von: "+str(fr[0]["mail"])+"@"+str(fr[0]["host"])+" am "+ str(self.date)
|
||||
|
||||
def print_text(self):
|
||||
txt=""
|
||||
fr=yaml.load(self.from_)
|
||||
txt= txt+ "Gesendet von: "+str(fr[0]["mail"])+"@"+str(fr[0]["host"])+" am "+ str(self.date) + "\n"
|
||||
# txt= txt+ "Gesendet von: "+str(fr[0]["mail"])+"@"+str(fr[0]["host"])+" am "+ str(self.date) + "\n"
|
||||
t=yaml.load(self.text)
|
||||
if type(t) is unicode:
|
||||
#txt=txt
|
||||
|
||||
Reference in New Issue
Block a user