Browse Source

[REF] [7.0] pylint;

pull/86/head
Sylvain LE GAL 10 years ago
parent
commit
42706e21d7
  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
      email_template_template/__init__.py
  6. 2
      email_template_template/model/__init__.py
  7. 6
      fetchmail_attach_from_folder/__init__.py
  8. 8
      fetchmail_attach_from_folder/match_algorithm/__init__.py
  9. 4
      fetchmail_attach_from_folder/match_algorithm/email_domain.py
  10. 4
      fetchmail_attach_from_folder/match_algorithm/email_exact.py
  11. 4
      fetchmail_attach_from_folder/match_algorithm/openerp_standard.py
  12. 4
      fetchmail_attach_from_folder/model/__init__.py
  13. 4
      mass_editing/__init__.py
  14. 2
      mass_editing/wizard/__init__.py
  15. 1
      mass_editing/wizard/mass_editing_wizard.py
  16. 3
      super_calendar/__init__.py
  17. 2
      tree_view_record_id/__init__.py
  18. 9
      tree_view_record_id/orm.py
  19. 3
      users_ldap_groups/__init__.py
  20. 6
      users_ldap_groups/users_ldap_groups.py
  21. 2
      users_ldap_mail/__init__.py
  22. 2
      users_ldap_populate/__init__.py
  23. 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/>. # 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/>. # 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 from openerp.tools.misc import upload_data_thread
upload_data_thread.run = lambda x: None upload_data_thread.run = lambda x: None

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/>. # 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. '''Search objects by domain name of email address.
Beware of match_first here, this is most likely to get it wrong (gmail)''' Beware of match_first here, this is most likely to get it wrong (gmail)'''
name = 'Domain of email address' 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.safe_eval import safe_eval
from openerp.tools.mail import email_split 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''' '''Search for exactly the mailadress as noted in the email'''
name = 'Exact mailadress' 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 '''No search at all. Use OpenERP's standard mechanism to attach mails to
mail.thread objects. Note that this algorithm always matches.''' 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

4
mass_editing/__init__.py

@ -19,5 +19,5 @@
# along with this program. If not, see <http://www.gnu.org/licenses/> # 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/> # 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} 'size': field.size or 256}
etree.SubElement(xml_group, 'field', { etree.SubElement(xml_group, 'field', {
'name': "selection__" + field.name, 'name': "selection__" + field.name,
'colspan': '2',
'colspan': '2'}) 'colspan': '2'})
etree.SubElement(xml_group, 'field', { etree.SubElement(xml_group, 'field', {
'name': field.name, 'nolabel': '1', '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/>. # 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 from lxml import etree
import os 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__))) 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 logging
import users_ldap_groups_operators
import inspect import inspect
from openerp.osv import fields, orm
from . import users_ldap_groups_operators
class CompanyLDAPGroupMapping(orm.Model): class CompanyLDAPGroupMapping(orm.Model):
_name = 'res.company.ldap.group_mapping' _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