iro/controller/viewinterface.py
branchdevel
changeset 198 85ede27b1add
parent 192 6c708c334f37
child 199 1bcca1a40769
--- a/iro/controller/viewinterface.py	Tue Feb 28 01:19:15 2012 +0100
+++ b/iro/controller/viewinterface.py	Tue Feb 28 01:44:11 2012 +0100
@@ -85,7 +85,7 @@
         Keywords:
         apikey[string]: Der API Key
         subject[string]: Der Betreff
-        fax[string]: Das PDF base64 kodiert
+        fax[string]: Der base64 kodierte content
         recipients[list]: Eine Liste von Emfänger-Nummern (gemäß ITU-T E.123)
         route[string|list]: Route über den geschickt werden soll, 
                             oder eine Liste von Routen, um Fallbacks anzugeben
@@ -94,8 +94,11 @@
         id[hash]: Die ID des Auftrages
 
         '''
-        job = createJob(recipients, Fax(subject, fax), info, route)
-        return job.id
+        d = createJob(user, recipients, Fax(subject, fax), route, info)
+        def ret(job):
+            return job.dbjob
+        d.addCallback(ret)
+        return d
 
     @validate(kwd="recipients",func=vEmail)
     @validate(kwd="frm",func=vEmail)