From a6cab7ac444c4ceea880abeb586b2a38049a3ea7 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 25 Oct 2010 10:20:31 +0200 Subject: [PATCH] [REM] code having become noop and generating lint warnings following commenting of related code bzr revid: xmo@openerp.com-20101025082031-pqrlih2gd6nnqstr --- bin/osv/orm.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 5c478e3f4b2..c24de8c07c2 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -2969,26 +2969,6 @@ class orm(orm_template): for key, v in r.items(): if v is None: r[key] = False - if key in self._columns: - column = self._columns[key] - elif key in self._inherit_fields: - column = self._inherit_fields[key][2] - else: - continue -# TODO: removed this, it's too slow -# if v and column._type == 'reference': -# model_name, ref_id = v.split(',', 1) -# model = self.pool.get(model_name) -# if not model: -# reset = True -# else: -# cr.execute('SELECT count(1) FROM "%s" WHERE id=%%s' % (model._table,), (ref_id,)) -# reset = not cr.fetchone()[0] -# if reset: -# if column._classic_write: -# query = 'UPDATE "%s" SET "%s"=NULL WHERE id=%%s' % (self._table, key) -# cr.execute(query, (r['id'],)) -# r[key] = False if isinstance(ids, (int, long, dict)): return result and result[0] or False