iro/model/message.py
branchdevel
changeset 244 48fba7b4afe9
parent 235 c5d8384caf68
child 258 0a5eb5aac0be
--- a/iro/model/message.py	Fri Mar 23 16:21:22 2012 +0100
+++ b/iro/model/message.py	Fri Mar 23 16:22:32 2012 +0100
@@ -21,16 +21,12 @@
 
 class SMS(Message):
     def __init__(self, cont, from_ = None):
-        Message.__init__(self, cont, typ="sms")
+        Message.__init__(self, cont.encode("utf-8"), typ="sms")
         self.from_ = from_
 
-    def sendto(self,anbieter,recipients):
-        anbieter.sendSMS(self,recipients)
-
-
 class Fax(Message):
     def __init__(self,header,cont,attachments=[]):
-        Message.__init__(self,cont, typ="fax")
+        Message.__init__(self,cont.encode("utf-8"),typ="fax")
         self.header=header
         self.attachments=attachments