From 39c9e741cc990bbacde6e2fa1bbea7cda2a979fd Mon Sep 17 00:00:00 2001 From: Roland Haroutiounian Date: Fri, 19 Jun 2015 15:55:16 +0200 Subject: [PATCH] =?UTF-8?q?[#12]=20Correction=20sur=20la=20casse=20des=20f?= =?UTF-8?q?onctions=20de=20g=C3=A9n=C3=A9ration=20d'une=20requ=C3=AAte=20S?= =?UTF-8?q?elect=20dans=20fields=5Ftypes.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EditorialModel/fields_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EditorialModel/fields_types.py b/EditorialModel/fields_types.py index 4ec7071..9b04ab5 100644 --- a/EditorialModel/fields_types.py +++ b/EditorialModel/fields_types.py @@ -70,7 +70,7 @@ class Em_Field_Type(object): def _deleteDb(self): dbe = EmComponent.getDbe() table = sqla.Table(self.table, sqlutils.meta(dbe)) - req = table.Delete().Where(table.c.type_id==self.type_id).Where(table.c.field_id==self.field_id) + req = table.delete().where(table.c.type_id==self.type_id).where(table.c.field_id==self.field_id) conn = dbe.connect() try: conn.execute(req) @@ -97,7 +97,7 @@ class Em_Field_Type(object): def _existsDb(self): dbe = EmComponent.getDbe() table = sqla.Table(self.table, sqlutils.meta(dbe)) - req = table.Select().Where(table.c.type_id==self.type_id).Where(table.c.field_id==self.field_id) + req = table.select().where(table.c.type_id==self.type_id).where(table.c.field_id==self.field_id) conn = dbe.connect() res = conn.execute(req).fetchall() conn.close()