Browse Source

[FIX] pylint problems

pull/118/head
Holger Brunn 10 years ago
parent
commit
c3236bae27
  1. 2
      email_template_template/__init__.py
  2. 2
      email_template_template/model/__init__.py
  3. 7
      fetchmail_attach_from_folder/__init__.py
  4. 9
      fetchmail_attach_from_folder/match_algorithm/__init__.py
  5. 2
      fetchmail_attach_from_folder/match_algorithm/email_domain.py
  6. 2
      fetchmail_attach_from_folder/match_algorithm/email_exact.py
  7. 3
      fetchmail_attach_from_folder/match_algorithm/openerp_standard.py
  8. 5
      fetchmail_attach_from_folder/model/__init__.py
  9. 2
      fetchmail_attach_from_folder/model/fetchmail_server.py
  10. 3
      fetchmail_attach_from_folder/wizard/__init__.py
  11. 2
      mail_client_view/__init__.py
  12. 2
      mail_client_view/model/__init__.py
  13. 4
      mass_editing/__init__.py
  14. 2
      mass_editing/wizard/__init__.py
  15. 3
      server_env_base_external_referentials/__init__.py
  16. 7
      server_environment/serv_config.py
  17. 2
      super_calendar/__init__.py
  18. 2
      unserialize_field/__init__.py
  19. 2
      view_groups_id/__init__.py
  20. 2
      view_groups_id/model/__init__.py

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

7
fetchmail_attach_from_folder/__init__.py

@ -19,7 +19,6 @@
# 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 match_algorithm
import model
import wizard
from . import match_algorithm
from . import model
from . import wizard

9
fetchmail_attach_from_folder/match_algorithm/__init__.py

@ -19,8 +19,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 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

@ -19,7 +19,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/>.
# #
############################################################################## ##############################################################################
from email_exact import email_exact
from .email_exact import email_exact
class email_domain(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.safe_eval import safe_eval
from openerp.addons.mail.mail_message import to_email from openerp.addons.mail.mail_message import to_email

3
fetchmail_attach_from_folder/match_algorithm/openerp_standard.py

@ -19,8 +19,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/>.
# #
############################################################################## ##############################################################################
from base import base
from .base import base
class openerp_standard(base): class openerp_standard(base):

5
fetchmail_attach_from_folder/model/__init__.py

@ -19,6 +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 fetchmail_server
import fetchmail_server_folder
from . import fetchmail_server
from . import fetchmail_server_folder

2
fetchmail_attach_from_folder/model/fetchmail_server.py

@ -44,7 +44,7 @@ class fetchmail_server(Model):
def __init__(self, pool, cr): def __init__(self, pool, cr):
self._columns['object_id'].required = False self._columns['object_id'].required = False
return super(fetchmail_server, self).__init__(pool, cr)
super(fetchmail_server, self).__init__(pool, cr)
def onchange_server_type( def onchange_server_type(
self, cr, uid, ids, server_type=False, ssl=False, self, cr, uid, ids, server_type=False, ssl=False,

3
fetchmail_attach_from_folder/wizard/__init__.py

@ -19,5 +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 attach_mail_manually
from . import attach_mail_manually

2
mail_client_view/__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 model
from . import model

2
mail_client_view/model/__init__.py

@ -1 +1 @@
import mail_message
from . import mail_message

4
mass_editing/__init__.py

@ -21,7 +21,7 @@
# #
############################################################################## ##############################################################################
import mass_editing
import wizard
from . import mass_editing
from . import wizard
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

2
mass_editing/wizard/__init__.py

@ -21,6 +21,6 @@
# #
############################################################################## ##############################################################################
import mass_editing_wizard
from . import mass_editing_wizard
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

3
server_env_base_external_referentials/__init__.py

@ -18,5 +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 base_external_referentials
from . import base_external_referentials

7
server_environment/serv_config.py

@ -53,8 +53,10 @@ if not os.path.exists(ck_path):
) )
def setboolean(obj, attr, _bool=_boolean_states):
def setboolean(obj, attr, _bool=None):
"""Replace the attribute with a boolean.""" """Replace the attribute with a boolean."""
if _bool is None:
_bool = _boolean_states
res = _bool[getattr(obj, attr).lower()] res = _bool[getattr(obj, attr).lower()]
setattr(obj, attr, res) setattr(obj, attr, res)
return res return res
@ -116,13 +118,12 @@ class ServerConfiguration(orm.TransientModel):
_conf_defaults = _Defaults() _conf_defaults = _Defaults()
def __init__(self, pool, cr): def __init__(self, pool, cr):
res = super(ServerConfiguration, self).__init__(pool, cr)
super(ServerConfiguration, self).__init__(pool, cr)
self.running_env = system_base_config['running_env'] self.running_env = system_base_config['running_env']
# Only show passwords in development # Only show passwords in development
self.show_passwords = self.running_env in ('dev',) self.show_passwords = self.running_env in ('dev',)
self._arch = None self._arch = None
self._build_osv() self._build_osv()
return res
def _group(self, items, prefix): def _group(self, items, prefix):
"""Return an XML chunk which represents a group of fields.""" """Return an XML chunk which represents a group of fields."""

2
super_calendar/__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 super_calendar
from . import super_calendar

2
unserialize_field/__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 ir_model_fields
from . import ir_model_fields

2
view_groups_id/__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 model
from . import model

2
view_groups_id/model/__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 ir_ui_view
from . import ir_ui_view
Loading…
Cancel
Save