infra updates

This commit is contained in:
U-BASIS\dsmyda
2019-09-13 17:53:31 -04:00
parent f3972aff55
commit 6d1214261a
3 changed files with 13 additions and 2 deletions
+11
View File
@@ -26,3 +26,14 @@ class AndroidComponentAnalyzer:
# The Analyzer should implement this method
def analyze(self, dataSource, fileManager, context):
raise NotImplementedError
"""
A utility method to append list of attachments to msg body
"""
def appendAttachmentList(msgBody, attachmentsList):
body = msgBody
if attachmentsList:
body = body + "\n\n------------Attachments------------\n"
body = body + "\n".join(attachmentsList)
return body