misc/scripts/drop_external_entities.py
branchstable
changeset 7884 35d2e2f4e10a
parent 7398 26695dd703d8
child 8900 010a59e12d89
--- a/misc/scripts/drop_external_entities.py	Tue Sep 27 09:26:40 2011 +0200
+++ b/misc/scripts/drop_external_entities.py	Thu Sep 29 12:55:20 2011 +0200
@@ -15,7 +15,7 @@
     if suri != 'system':
         try:
             print 'deleting', e.__regid__, e.eid, suri, e.dc_title().encode('utf8')
-            repo.delete_info(session, e, suri, meta['extid'], scleanup=True)
+            repo.delete_info(session, e, suri, scleanup=e.eid)
         except UnknownEid:
             print '  cant delete', e.__regid__, e.eid, meta