Browse Source

[IMP] double quotes for docstring

pull/159/head
Holger Brunn 10 years ago
parent
commit
1c3abbc225
  1. 6
      database_cleanup/model/purge_modules.py

6
database_cleanup/model/purge_modules.py

@ -30,7 +30,7 @@ class IrModelConstraint(orm.Model):
_inherit = 'ir.model.constraint' _inherit = 'ir.model.constraint'
def _module_data_uninstall(self, cr, uid, ids, context=None): def _module_data_uninstall(self, cr, uid, ids, context=None):
'''this function crashes for constraints on undefined models'''
"""this function crashes for constraints on undefined models"""
for this in self.browse(cr, uid, ids, context=context): for this in self.browse(cr, uid, ids, context=context):
if not self.pool.get(this.model.model): if not self.pool.get(this.model.model):
ids.remove(this.id) ids.remove(this.id)
@ -43,8 +43,8 @@ class IrModelData(orm.Model):
_inherit = 'ir.model.data' _inherit = 'ir.model.data'
def _module_data_uninstall(self, cr, uid, modules_to_remove, context=None): def _module_data_uninstall(self, cr, uid, modules_to_remove, context=None):
'''this function crashes for xmlids on undefined models or fields
referring to undefined models'''
"""this function crashes for xmlids on undefined models or fields
referring to undefined models"""
ids = self.search(cr, uid, [('module', 'in', modules_to_remove)]) ids = self.search(cr, uid, [('module', 'in', modules_to_remove)])
for this in self.browse(cr, uid, ids, context=context): for this in self.browse(cr, uid, ids, context=context):
if this.model == 'ir.model.fields': if this.model == 'ir.model.fields':

Loading…
Cancel
Save