[FIX] coding style issues
@ -26,7 +26,9 @@ _logger = logging.getLogger('base.partner.merge')
# http://www.php2python.com/wiki/function.html-entity-decode/
def html_entity_decode_char(m, defs=htmlentitydefs.entitydefs):
def html_entity_decode_char(m, defs=None):
if defs is None:
defs = htmlentitydefs.entitydefs
try:
return defs[m.group(1)]
except KeyError:
@ -56,7 +56,7 @@ class ResPartner(orm.Model):
lambda self, cr, uid, ids, context=None:
self.search(cr, uid, [
('id', 'child_of', ids)
]),
['parent_id', 'is_company', 'name', 'firstname', 'lastname'],
10
)
@ -31,10 +31,12 @@ class Base_Test_passport(TransactionCase):
Inherit from this and setup values.
"""
def setUp(self, vals={}):
def setUp(self, vals=None):
Setting up passport.
if vals is None:
vals = {}
# Default test values
self.vals = {'name': 'This is a test passport name',
'number': 'A200124789',