improve CLI output
This commit is contained in:
@@ -47,6 +47,10 @@ class BaseMailStorage:
|
||||
self.metavar = metavar
|
||||
self.pretend = False
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
return "Base"
|
||||
|
||||
def add(self, data, qid, mailfrom, recipients, subject, variables):
|
||||
"Add email to storage."
|
||||
return ("", "")
|
||||
@@ -103,6 +107,10 @@ class FileMailStorage(BaseMailStorage):
|
||||
cfg.append(f"original={self.original}")
|
||||
return "FileMailStorage(" + ", ".join(cfg) + ")"
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
return "File"
|
||||
|
||||
def get_storageid(self, qid):
|
||||
timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
|
||||
return f"{timestamp}_{qid}"
|
||||
|
||||
Reference in New Issue
Block a user