lp bug: https://launchpad.net/bugs/487836 fixed
bzr revid: jvo@tinyerp.com-
20091125093504-2tdb5sx3hltpxnjq
'and type=%s ' \
'and name=%s ' \
'and src=%s',
- (lang, tt, str(name), source))
+ (lang, tt, tools.ustr(name), source))
else:
cr.execute('select value ' \
'from ir_translation ' \
'where lang=%s ' \
'and type=%s ' \
'and name=%s',
- (lang, tt, str(name)))
+ (lang, tt, tools.ustr(name)))
res = cr.fetchone()
trad = res and res[0] or ''
return trad
xml = self.__get_default_calendar_view()
else:
xml = ''
- result['arch'] = etree.fromstring(xml)
+ result['arch'] = etree.fromstring(encode(xml))
result['name'] = 'default'
result['field_parent'] = False
result['view_id'] = 0