92 starts the FAX with the pdf file fax and the subject |
92 starts the FAX with the pdf file fax and the subject |
93 ''' |
93 ''' |
94 logger.debug("startFAX(%s,%s,%s,%s)"%(subject, fax, recipients, provider)) |
94 logger.debug("startFAX(%s,%s,%s,%s)"%(subject, fax, recipients, provider)) |
95 if not "fax" in self.features: |
95 if not "fax" in self.features: |
96 raise NotSupportedFeature("fax") |
96 raise NotSupportedFeature("fax") |
97 id = self.jobqueue.newFAX(subject, fax,recipients,provider) |
97 |
|
98 if type(fax) != list: |
|
99 fax=[fax] |
|
100 f=[i.data for i in fax] |
|
101 |
|
102 id = self.jobqueue.newFAX(subject, f,recipients,provider) |
98 self.jobs[id]=self.jobqueue[id] |
103 self.jobs[id]=self.jobqueue[id] |
99 return id |
104 return id |
100 |
105 |
101 def startMail(self, subject, body, recipients, frm, provider="default"): |
106 def startMail(self, subject, body, recipients, frm, provider="default"): |
102 if not "mail" in self.features: |
107 if not "mail" in self.features: |