[c-c db-check] drop some deprecation warning stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Jul 2011 14:20:45 +0200
branchstable
changeset 7682 07b592a62be3
parent 7681 32c4c9bab046
child 7683 a21e24831ae4
[c-c db-check] drop some deprecation warning
server/checkintegrity.py
--- a/server/checkintegrity.py	Thu Jul 21 11:16:32 2011 +0200
+++ b/server/checkintegrity.py	Thu Jul 21 14:20:45 2011 +0200
@@ -286,7 +286,7 @@
                         entity.__regid__, entity.eid, role, rschema)
                     if fix:
                         #if entity.cw_describe()['source']['uri'] == 'system': XXX
-                        entity.delete()
+                        entity.cw_delete()
                     notify_fixed(fix)
 
 
@@ -306,7 +306,7 @@
                     print >> sys.stderr, '%s #%s is missing mandatory attribute %s' % (
                         entity.__regid__, entity.eid, rschema)
                     if fix:
-                        entity.delete()
+                        entity.cw_delete()
                     notify_fixed(fix)