iro/user.py
changeset 63 3df3da063cff
parent 60 5ca3aa8d75e1
child 67 d1912509f375
--- a/iro/user.py	Thu Nov 18 02:58:28 2010 +0100
+++ b/iro/user.py	Thu Nov 18 03:00:47 2010 +0100
@@ -94,7 +94,12 @@
         logger.debug("startFAX(%s,%s,%s,%s)"%(subject, fax, recipients, provider))
         if not "fax" in self.features:
             raise NotSupportedFeature("fax")
-        id = self.jobqueue.newFAX(subject, fax,recipients,provider)
+        
+        if type(fax) != list:
+            fax=[fax]
+        f=[i.data for i in fax]
+
+        id = self.jobqueue.newFAX(subject, f,recipients,provider)
         self.jobs[id]=self.jobqueue[id]
         return id