Browse Source

[FIX] coding style issues

pull/40/head
Holger Brunn 10 years ago
parent
commit
97b067362c
  1. 4
      base_partner_merge/base_partner_merge.py
  2. 2
      firstname_display_name_trigger/res_partner.py
  3. 4
      passport/tests/test_passport.py

4
base_partner_merge/base_partner_merge.py

@ -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:

2
firstname_display_name_trigger/res_partner.py

@ -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
)

4
passport/tests/test_passport.py

@ -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',

Loading…
Cancel
Save