merging fax
authorSandro Knauß <knauss@netzguerilla.net>
Sun, 07 Feb 2010 05:12:57 +0100
changeset 29 49ffb1f6cdbf
parent 28 cf54cc3373f2 (current diff)
parent 26 f6eb3f425b0c (diff)
child 30 5253631a8dd3
child 33 2b3f1b9a1e48
merging fax
iro/user.py
--- a/iro/user.py	Sun Feb 07 05:12:31 2010 +0100
+++ b/iro/user.py	Sun Feb 07 05:12:57 2010 +0100
@@ -87,11 +87,15 @@
         return id
     
     
-    def startFAX(self,provider="default"):
+    def startFAX(self,subject, fax,provider="default"):
+        '''
+        starts the FAX  with the pdf file fax and the subject
         '''
-        starts the FAX - not implemented
-        '''
-        raise NotSupportedFeature("fax")
+        if not "fax" in self.features:
+            raise NotSupportedFeature("fax")
+        id = self.jobqueue.newFAX(subject, fax,recipients,provider)
+        self.jobs[id]=self.jobqueue[id]
+        return id