~alecu/openobject-server/django-tracebacks

« back to all changes in this revision

Viewing changes to bin/addons/base/res/ir_property.py

  • Committer: HDA(OpenERP)
  • Date: 2009-10-21 07:25:33 UTC
  • Revision ID: hda@tinyerp.com-20091021072533-1p0q91xcxoj51k1n
Remove sql injection problem

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    }
59
59
    def unlink(self, cr, uid, ids, context={}):
60
60
        if ids:
61
 
            cr.execute('delete from ir_model_fields where id in (select fields_id from ir_property where (fields_id is not null) and (id in ('+','.join(map(str,ids))+')))')
 
61
            cr.execute('delete from ir_model_fields where id in (select fields_id from ir_property where (fields_id is not null) and (id in ('+','.join(map(str, ids))+')))')
62
62
        res = super(ir_property, self).unlink(cr, uid, ids, context)
63
63
        return res
64
64