--- a/iro/user.py Wed Oct 28 03:03:46 2009 +0100
+++ b/iro/user.py Wed Oct 28 03:36:27 2009 +0100
@@ -58,18 +58,18 @@
job.stop()
- def startSMS(self,message,recipients):
+ def startSMS(self,message,recipients,provider="default"):
'''
starts the SMS with message to recipients
'''
if not "sms" in self.features:
raise NotSupportedFeature("sms")
- id = self.jobqueue.newSMS(message,recipients)
+ id = self.jobqueue.newSMS(message,recipients,provider)
self.jobs[id]=self.jobqueue[id]
return id
- def startFAX(self):
+ def startFAX(self,provider="default"):
'''
starts the FAX - not implemented
'''
@@ -77,10 +77,10 @@
- def startMail(self,subject, body , recipients):
+ def startMail(self,subject, body , recipients,provider="default"):
if not "mail" in self.features:
raise NotSupportedFeature("mail")
- id = self.jobqueue.newMail(subject, body ,recipients)
+ id = self.jobqueue.newMail(subject, body ,recipients,provider)
self.jobs[id]=self.jobqueue[id]
return id