Browse Source

[REF] auto-fix conventions

Signed-off-by: Sandy Carter <sandy.carter@savoirfairelinux.com>
pull/49/head
Sandy Carter 10 years ago
parent
commit
6821dd63ed
  1. 2
      __unported__/base_address_category/__init__.py
  2. 1
      __unported__/base_address_category/base_address.py
  3. 5
      __unported__/partner_address_ldap/address.py
  4. 1
      base_partner_merge/validate_email.py
  5. 2
      firstname_display_name_trigger/__init__.py
  6. 2
      firstname_display_name_trigger/tests/__init__.py
  7. 2
      partner_auto_salesman/__init__.py
  8. 2
      partner_firstname/tests/__init__.py
  9. 2
      res_partner_affiliate/__init__.py

2
__unported__/base_address_category/__init__.py

@ -20,4 +20,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import base_address
from . import base_address

1
__unported__/base_address_category/base_address.py

@ -27,6 +27,7 @@ from openerp.osv import fields, orm
class ResPartnerAdressCategory(orm.Model):
def name_get(self, cr, uid, ids, context=None):
if not len(ids):
return []

5
__unported__/partner_address_ldap/address.py

@ -174,7 +174,7 @@ class LDAPAddress(orm.Model):
# res = [x[0] for x in res]
# else:
# res = []
# # search in partner name to know if we are searching partner...
# search in partner name to know if we are searching partner...
# partner_obj=self.pool.get('res.partner')
# part_len = len(res)-limit
# if part_len > 0:
@ -184,7 +184,7 @@ class LDAPAddress(orm.Model):
# )
# for p in partner_res:
# addresses = partner_obj.browse(cursor, user, p).address
# # Take each contact and add it to
# Take each contact and add it to
# for add in addresses:
# res.append(add.id)
# return self.name_get(cursor, user, res, context)
@ -255,7 +255,6 @@ class LDAPAddress(orm.Model):
except UnicodeError:
logger.notifyChannel('LDAP encode', netsvc.LOG_DEBUG,
'cannot unicode ' + vals[val])
pass
if ids is not None:
if isinstance(ids, (int, long)):

1
base_partner_merge/validate_email.py

@ -68,7 +68,6 @@ VALID_ADDRESS_REGEXP = '^' + ADDR_SPEC + '$'
def validate_email(email, check_mx=False, verify=False):
"""Indicate whether the given string is a valid email address
according to the 'addr-spec' portion of RFC 2822 (see section
3.4.1). Parts of the spec that are marked obsolete are *not*

2
firstname_display_name_trigger/__init__.py

@ -19,4 +19,4 @@
#
##############################################################################
import res_partner
from . import res_partner

2
firstname_display_name_trigger/tests/__init__.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
import test_display_name
from . import test_display_name
checks = [
test_display_name

2
partner_auto_salesman/__init__.py

@ -19,4 +19,4 @@
#
##############################################################################
import res_partner
from . import res_partner

2
partner_firstname/tests/__init__.py

@ -28,7 +28,7 @@
#
##############################################################################
import test_partner_firstname
from . import test_partner_firstname
checks = [
test_partner_firstname

2
res_partner_affiliate/__init__.py

@ -19,4 +19,4 @@
#
##############################################################################
import res_partner
from . import res_partner
Loading…
Cancel
Save