diff --git a/gen/wrappers/ToolWrapper.py b/gen/wrappers/ToolWrapper.py index 194cbf9..fe92e8c 100644 --- a/gen/wrappers/ToolWrapper.py +++ b/gen/wrappers/ToolWrapper.py @@ -1,6 +1,7 @@ # ------------------------------------------------------------------------------ import os.path, time import appy +from appy.gen.mail import sendMail from appy.shared.utils import executeCommand from appy.gen.wrappers import AbstractWrapper from appy.gen.installer import loggedUsers @@ -130,6 +131,10 @@ class ToolWrapper(AbstractWrapper): self.log('Executing %s...' % cmd) return executeCommand(cmd) # The result can contain an error message + def sendMail(self, to, subject, body, attachments=None): + '''Sends a mail. See doc for appy.gen.mail.sendMail.''' + sendMail(self, to, subject, body, attachments=attachments) + def refreshSecurity(self): '''Refreshes, on every object in the database, security-related, workflow-managed information.'''