Browse Source

fix pep8 W503

Add OCA as author of OCA addons

In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
pull/1009/head
Alexandre Fayolle 10 years ago
committed by Holger Brunn
parent
commit
3a4467d1fc
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 2
      database_cleanup/__openerp__.py
  2. 5
      database_cleanup/model/purge_columns.py
  3. 6
      database_cleanup/model/purge_tables.py

2
database_cleanup/__openerp__.py

@ -22,7 +22,7 @@
{
'name': 'Database cleanup',
'version': '0.1',
'author': 'Therp BV',
'author': "Therp BV,Odoo Community Association (OCA)",
'depends': ['base'],
'license': 'AGPL-3',
'category': 'Tools',

5
database_cleanup/model/purge_columns.py

@ -96,8 +96,9 @@ class CleanupPurgeWizardColumn(orm.TransientModel):
columns = list(set([
column for model_pool in model_pools
for column in model_pool._columns
if not (isinstance(model_pool._columns[column], fields.function)
and not model_pool._columns[column].store)
if not (isinstance(model_pool._columns[column],
fields.function) and
not model_pool._columns[column].store)
]))
columns += orm.MAGIC_COLUMNS
columns += self.blacklist.get(model_pools[0]._table, [])

6
database_cleanup/model/purge_tables.py

@ -110,9 +110,9 @@ class CleanupPurgeWizardTable(orm.TransientModel):
known_tables += [
column._sql_names(model_pool)[0]
for column in model_pool._columns.values()
if column._type == 'many2many'
# unstored function fields of type m2m don't have _rel
and hasattr(column, '_rel')
if (column._type == 'many2many' and
hasattr(column, '_rel')) # unstored function fields of
# type m2m don't have _rel
]
# Cannot pass table names as a psycopg argument

Loading…
Cancel
Save