Guidelines. Again.

This commit is contained in:
Bertrand Chenal committed 2008-04-10 17:01:17 +02:00
1 parent 210b3151be
commit 309d20ec5d
1 file changed
+1 -1
+1 -1
View File
@@ -1265,7 +1265,7 @@ class ORM(object):
"SELECT id FROM wkf_instance "\
"WHERE res_id IN (" + ",".join(["%s" for i in ids]) + ") "\
"AND res_type = %s AND state != 'complete'",
(ids+[self._name]))
ids + [self._name])
if cursor.rowcount != 0:
raise ExceptORM(
'UserError','You cannot delete a record with a running workflow.')