Browse Source

[REF] [7.0] Pylint;

pull/86/head
Sylvain LE GAL 10 years ago
parent
commit
1ffd2d3d1c
  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. 4
      fetchmail_attach_from_folder/match_algorithm/email_domain.py
  11. 4
      fetchmail_attach_from_folder/match_algorithm/email_exact.py
  12. 4
      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. 9
      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

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

4
fetchmail_attach_from_folder/match_algorithm/email_domain.py

@ -20,10 +20,10 @@
#
##############################################################################
from email_exact import email_exact
from . import email_exact
class email_domain(email_exact):
class email_domain(email_exact.email_exact):
'''Search objects by domain name of email address.
Beware of match_first here, this is most likely to get it wrong (gmail)'''
name = 'Domain of email address'

4
fetchmail_attach_from_folder/match_algorithm/email_exact.py

@ -20,12 +20,12 @@
#
##############################################################################
from base import base
from . import base
from openerp.tools.safe_eval import safe_eval
from openerp.tools.mail import email_split
class email_exact(base):
class email_exact(base.base):
'''Search for exactly the mailadress as noted in the email'''
name = 'Exact mailadress'

4
fetchmail_attach_from_folder/match_algorithm/openerp_standard.py

@ -20,10 +20,10 @@
#
##############################################################################
from base import base
from . import base
class openerp_standard(base):
class openerp_standard(base.base):
'''No search at all. Use OpenERP's standard mechanism to attach mails to
mail.thread objects. Note that this algorithm always matches.'''

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

9
tree_view_record_id/orm.py

@ -12,12 +12,9 @@ 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
"""
# 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
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
Loading…
Cancel
Save