Commits

Ciaran Farrell committed a8568a9

MessagePart.value expects b64encoded bytes - need to handle the unicode with byte encoding first though

  • Participants
  • Parent commits e5528fc

Comments (0)

Files changed (1)

File termine/gwise.py

     app.subject = subject
     logger.debug('Setting appointment message to %s'%message)
     mp = self.client.factory.create('ns2:MessagePart')
-    mp.value = message
+    mp.value = base64.b64encode(message.encode('utf-8'))
     mb = self.client.factory.create('ns2:MessageBody')
     mb.part = mp
     app.message = mb