Browse Source

Merge pull request #86 from grap/7.0-pylint

[REF] [7.0] pylint;
pull/98/head
Guewen Baconnier 10 years ago
parent
commit
f423f3fd28
  1. 2
      base_optional_quick_create/__init__.py
  2. 2
      cron_run_manually/__init__.py
  3. 2
      cron_run_manually/model/__init__.py
  4. 2
      disable_openerp_online/__init__.py
  5. 2
      disable_openerp_online/model/__init__.py
  6. 2
      email_template_template/__init__.py
  7. 2
      email_template_template/model/__init__.py
  8. 6
      fetchmail_attach_from_folder/__init__.py
  9. 8
      fetchmail_attach_from_folder/match_algorithm/__init__.py
  10. 2
      fetchmail_attach_from_folder/match_algorithm/email_domain.py
  11. 2
      fetchmail_attach_from_folder/match_algorithm/email_exact.py
  12. 2
      fetchmail_attach_from_folder/match_algorithm/openerp_standard.py
  13. 4
      fetchmail_attach_from_folder/model/__init__.py
  14. 2
      fetchmail_attach_from_folder/wizard/__init__.py
  15. 4
      mass_editing/__init__.py
  16. 2
      mass_editing/wizard/__init__.py
  17. 1
      mass_editing/wizard/mass_editing_wizard.py
  18. 3
      super_calendar/__init__.py
  19. 2
      tree_view_record_id/__init__.py
  20. 12
      tree_view_record_id/orm.py
  21. 3
      users_ldap_groups/__init__.py
  22. 6
      users_ldap_groups/users_ldap_groups.py
  23. 2
      users_ldap_mail/__init__.py
  24. 2
      users_ldap_populate/__init__.py
  25. 4
      users_ldap_populate/model/__init__.py
  26. 2
      users_ldap_populate/model/users_ldap.py

2
base_optional_quick_create/__init__.py

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

2
cron_run_manually/__init__.py

@ -1 +1 @@
import model
from . import model

2
cron_run_manually/model/__init__.py

@ -1 +1 @@
import ir_cron
from . import ir_cron

2
disable_openerp_online/__init__.py

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import model
from . import model
from openerp.tools.misc import upload_data_thread
upload_data_thread.run = lambda x: None

2
disable_openerp_online/model/__init__.py

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

2
email_template_template/__init__.py

@ -1 +1 @@
import model
from . import model

2
email_template_template/model/__init__.py

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

6
fetchmail_attach_from_folder/__init__.py

@ -20,6 +20,6 @@
#
##############################################################################
import match_algorithm
import model
import wizard
from . import match_algorithm
from . import model
from . import wizard

8
fetchmail_attach_from_folder/match_algorithm/__init__.py

@ -20,7 +20,7 @@
#
##############################################################################
import base
import email_exact
import email_domain
import openerp_standard
from . import base
from . import email_exact
from . import email_domain
from . import openerp_standard

2
fetchmail_attach_from_folder/match_algorithm/email_domain.py

@ -20,7 +20,7 @@
#
##############################################################################
from email_exact import email_exact
from .email_exact import email_exact
class email_domain(email_exact):

2
fetchmail_attach_from_folder/match_algorithm/email_exact.py

@ -20,7 +20,7 @@
#
##############################################################################
from base import base
from .base import base
from openerp.tools.safe_eval import safe_eval
from openerp.tools.mail import email_split

2
fetchmail_attach_from_folder/match_algorithm/openerp_standard.py

@ -20,7 +20,7 @@
#
##############################################################################
from base import base
from .base import base
class openerp_standard(base):

4
fetchmail_attach_from_folder/model/__init__.py

@ -20,5 +20,5 @@
#
##############################################################################
import fetchmail_server
import fetchmail_server_folder
from . import fetchmail_server
from . import fetchmail_server_folder

2
fetchmail_attach_from_folder/wizard/__init__.py

@ -20,4 +20,4 @@
#
##############################################################################
import attach_mail_manually
from . import attach_mail_manually

4
mass_editing/__init__.py

@ -19,5 +19,5 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>
#
##############################################################################
import mass_editing
import wizard
from . import mass_editing
from . import wizard

2
mass_editing/wizard/__init__.py

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

1
mass_editing/wizard/mass_editing_wizard.py

@ -111,7 +111,6 @@ class mass_editing_wizard(orm.TransientModel):
'size': field.size or 256}
etree.SubElement(xml_group, 'field', {
'name': "selection__" + field.name,
'colspan': '2',
'colspan': '2'})
etree.SubElement(xml_group, 'field', {
'name': field.name, 'nolabel': '1',

3
super_calendar/__init__.py

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

2
tree_view_record_id/__init__.py

@ -8,4 +8,4 @@
#
##############################################################################
import orm
from . import orm

12
tree_view_record_id/orm.py

@ -8,17 +8,17 @@
#
##############################################################################
from openerp.osv import orm
from lxml import etree
import os
""" procedural code is executed even if the module is not installed
TRY TO SWITCH to _register_hook() in the model to avoid
execution when not installed in V 8.0 version
TRY TO SWITCH to _register_hook() in the model to avoid
execution when not installed in V 8.0 version
"""
from openerp.osv import orm
from lxml import etree
import os
module_name = os.path.basename(os.path.dirname(os.path.abspath(__file__)))

3
users_ldap_groups/__init__.py

@ -19,4 +19,5 @@
#
##############################################################################
import users_ldap_groups
from . import users_ldap_groups
from . import users_ldap_groups_operators

6
users_ldap_groups/users_ldap_groups.py

@ -19,11 +19,13 @@
#
##############################################################################
from openerp.osv import fields, orm
import logging
import users_ldap_groups_operators
import inspect
from openerp.osv import fields, orm
from . import users_ldap_groups_operators
class CompanyLDAPGroupMapping(orm.Model):
_name = 'res.company.ldap.group_mapping'

2
users_ldap_mail/__init__.py

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

2
users_ldap_populate/__init__.py

@ -1 +1 @@
import model
from . import model

4
users_ldap_populate/model/__init__.py

@ -1,2 +1,2 @@
import users_ldap
import populate_wizard
from . import users_ldap
from . import populate_wizard

2
users_ldap_populate/model/users_ldap.py

@ -50,7 +50,7 @@ class CompanyLDAP(orm.Model):
if not conf['create_user']:
continue
attribute_match = re.search(
'([a-zA-Z_]+)=\%s', conf['ldap_filter'])
r'([a-zA-Z_]+)=\%s', conf['ldap_filter'])
if attribute_match:
login_attr = attribute_match.group(1)
else:

Loading…
Cancel
Save