1.1 --- a/MoinMessage.py Sun Oct 21 18:41:38 2012 +0200
1.2 +++ b/MoinMessage.py Sun Oct 28 19:20:23 2012 +0100
1.3 @@ -26,6 +26,13 @@
1.4 self.updates = []
1.5
1.6 def add_update(self, alternatives):
1.7 +
1.8 + """
1.9 + Add an update fragment to a message, providing alternative forms of the
1.10 + update content in the given 'alternatives': a list of MIME message
1.11 + parts, each encoding the content according to different MIME types.
1.12 + """
1.13 +
1.14 if len(alternatives) > 1:
1.15 part = MIMEMultipart()
1.16 for alternative in alternatives:
1.17 @@ -35,6 +42,9 @@
1.18 self.updates.append(alternatives[0])
1.19
1.20 def get_payload(self):
1.21 +
1.22 + "Get the multipart payload for the message."
1.23 +
1.24 if len(self.updates) == 1:
1.25 message = self.updates[0]
1.26 else: