misc/scripts/drop_external_entities.py
changeset 7398 26695dd703d8
parent 6636 dbc9cce53c11
child 7884 35d2e2f4e10a
--- a/misc/scripts/drop_external_entities.py	Thu May 19 10:36:26 2011 +0200
+++ b/misc/scripts/drop_external_entities.py	Thu May 19 10:53:11 2011 +0200
@@ -3,7 +3,7 @@
 
 sql("DELETE FROM entities WHERE type='Int'")
 
-ecnx = session.pool.connection(source)
+ecnx = session.cnxset.connection(source)
 for e in rql('Any X WHERE X cw_source S, S name %(name)s', {'name': source}).entities():
     meta = e.cw_metainformation()
     assert meta['source']['uri'] == source