- Revision
- 15906
- Author
- bkirsch
- Date
- 2007-11-26 12:35:17 -0800 (Mon, 26 Nov 2007)
Log Message
fixes bug 11457 SaveValueError on IMAPFolder.folderName. The value passed in the default case was a i18n.Message object however folderName is schema.Text and accepts Unicode or ASCII. r=heikki
Modified Paths
Diff
Modified: trunk/chandler/parcels/osaf/mail/imap.py (15905 => 15906)
--- trunk/chandler/parcels/osaf/mail/imap.py 2007-11-26 19:21:43 UTC (rev 15905) +++ trunk/chandler/parcels/osaf/mail/imap.py 2007-11-26 20:35:17 UTC (rev 15906) @@ -377,12 +377,15 @@ e = constants.CHANDLER_EVENTS_FOLDER status = { - #pos 0: The Unicode name of the folder on the IMAP Server + #pos 0: The Unicode name of the folder on the IMAP Server. + # The values in m, t, and e are of type i18n.Message. + # They need to be converted to Unicode to be saved in + # the IMAPFolder.folderName attribute of type schema.Text. #pos 1: Boolean whether to folder exists on the server already #pos 2: Boolean whether the folder is currently subscribe to already - m: [m, False, False], - t: [t, False, False], - e: [e, False, False] + m: [unicode(m), False, False], + t: [unicode(t), False, False], + e: [unicode(e), False, False] } d = self.proto.list("", "INBOX")
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
