iro/user.py
changeset 26 f6eb3f425b0c
parent 10 4a33882f3a49
child 29 49ffb1f6cdbf
equal deleted inserted replaced
15:c04a21066aad 26:f6eb3f425b0c
    67         id = self.jobqueue.newSMS(message,recipients,provider)
    67         id = self.jobqueue.newSMS(message,recipients,provider)
    68         self.jobs[id]=self.jobqueue[id]
    68         self.jobs[id]=self.jobqueue[id]
    69         return id
    69         return id
    70     
    70     
    71     
    71     
    72     def startFAX(self,provider="default"):
    72     def startFAX(self,subject, fax,provider="default"):
    73         '''
    73         '''
    74         starts the FAX - not implemented
    74         starts the FAX  with the pdf file fax and the subject
    75         '''
    75         '''
    76         raise NotSupportedFeature("fax")
    76         if not "fax" in self.features:
       
    77             raise NotSupportedFeature("fax")
       
    78         id = self.jobqueue.newFAX(subject, fax,recipients,provider)
       
    79         self.jobs[id]=self.jobqueue[id]
       
    80         return id
    77 
    81 
    78     
    82     
    79         
    83         
    80     def startMail(self,subject,  body , recipients,provider="default"):
    84     def startMail(self,subject,  body , recipients,provider="default"):
    81         if not "mail" in self.features:
    85         if not "mail" in self.features: