Browse Source

[7.0] [FIX] Pep8

pull/71/head
Sylvain LE GAL 10 years ago
parent
commit
a389276869
  1. 3
      import_odbc/import_odbc.py
  2. 5
      server_environment/serv_config.py
  3. 3
      super_calendar/super_calendar.py
  4. 3
      users_ldap_groups/users_ldap_groups_operators.py

3
import_odbc/import_odbc.py

@ -67,8 +67,7 @@ class import_odbc_dbtable(orm.Model):
'last_log': fields.text('Last run log', readonly=True),
'ignore_rel_errors': fields.boolean(
'Ignore relationship errors',
help="On error try to reimport rows ignoring relationships."
),
help="On error try to reimport rows ignoring relationships."),
'raise_import_errors': fields.boolean(
'Raise import errors',
help="Import errors not handled, intended for debugging purposes."

5
server_environment/serv_config.py

@ -172,8 +172,9 @@ class ServerConfiguration(orm.TransientModel):
arch += '</notebook></form>'
self._arch = etree.fromstring(arch)
def fields_view_get(self, cr, uid, view_id=None, view_type='form',
context=None, toolbar=False, submenu=False):
def fields_view_get(
self, cr, uid, view_id=None, view_type='form', context=None,
toolbar=False, submenu=False):
"""Overwrite the default method to render the custom view."""
res = super(ServerConfiguration, self).fields_view_get(cr, uid,
view_id,

3
super_calendar/super_calendar.py

@ -149,8 +149,7 @@ class super_calendar_configurator_line(orm.Model):
'description_code': fields.text(
'Description field',
help="Use '${o}' to refer to the involved object. "
"E.g.: '${o.project_id.name}'"
),
"E.g.: '${o.project_id.name}'"),
'date_start_field_id': fields.many2one(
'ir.model.fields', 'Start date field',
domain="['&','|',('ttype', '=', 'datetime'),"

3
users_ldap_groups/users_ldap_groups_operators.py

@ -57,8 +57,7 @@ class query(LDAPOperator):
logger):
query_string = Template(value).safe_substitute(dict(
[(attr, ldap_entry[1][attribute][0]) for attr in ldap_entry[1]]
)
)
))
logger.debug('evaluating query group mapping, filter: %s',
query_string)
results = company.query(ldap_config, query_string)

Loading…
Cancel
Save