# HG changeset patch # User Sandro Knauß # Date 1258308488 -3600 # Node ID f6eb3f425b0c59d0fd7e1d23b191831118a1788b # Parent c04a21066aad69249c21ae12f4cc6ce6f7acbbb9 fax hinzugefügt diff -r c04a21066aad -r f6eb3f425b0c iro/user.py --- a/iro/user.py Fri Nov 13 01:42:38 2009 +0100 +++ b/iro/user.py Sun Nov 15 19:08:08 2009 +0100 @@ -69,11 +69,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