[issue1822] email.mime.multipart.MIMEMultipart.is_multipart() returns false before items have been added.

2008-01-19 Thread Jonathan Share
Jonathan Share added the comment: Attaching a patch for the quick fix I proposed below. I would still like to see some feedback regarding making the design of the mime module more object oriented. email.Message really shouldn't be making assumtions about how subclasses represent their state.

[issue1822] email.mime.multipart.MIMEMultipart.is_multipart() returns false before items have been added.

2008-01-19 Thread Jonathan Share
Changes by Jonathan Share: -- nosy: +facundobatista __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1822 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1822] email.mime.multipart.MIMEMultipart.is_multipart() returns false before items have been added.

2008-01-19 Thread Facundo Batista
Facundo Batista added the comment: Fixed in r60073. Regarding the flag, you're right: maybe these classes should deal it in other way... but maybe there're reasons to do this. If you want to push a better structure for this flag, feel free to raise the issue in python-dev. Anyway, the real

[issue1822] email.mime.multipart.MIMEMultipart.is_multipart() returns false before items have been added.

2008-01-14 Thread Jonathan Share
New submission from Jonathan Share: Steps to reproduce == from email.mime.multipart import MIMEMultipart foo = MIMEMultipart() foo.is_multipart() False Expected Result === True should be returned from MIMEMultipart.is_multipart() Notes = Looking at the