Fix in email digest due to unicode change

This commit is contained in:
Anand Doshi 2012-02-06 11:41:25 +05:30
parent fd5005567b
commit 7e13f9b4b5

View File

@ -520,7 +520,8 @@ class DocType:
currency = company.default_currency
def table(args):
if type(args['body']) == type(''):
table_body = ""
if isinstance(args['body'], basestring):
table_body = """\
<tbody><tr>
<td style='padding: 5px; font-size: 24px; \
@ -530,7 +531,7 @@ class DocType:
</td>
</tr></tbody>"""
elif type(args['body'] == type([])):
elif isinstance(args['body'], list):
body_rows = []
for rows in args['body']:
for r in rows: