equal
deleted
inserted
replaced
1198 """ |
1198 """ |
1199 from logilab.common.shellutils import ProgressBar |
1199 from logilab.common.shellutils import ProgressBar |
1200 source = self.repo.system_source |
1200 source = self.repo.system_source |
1201 storage = source.storage(etype, attribute) |
1201 storage = source.storage(etype, attribute) |
1202 source.unset_storage(etype, attribute) |
1202 source.unset_storage(etype, attribute) |
1203 rset = self.rqlexec('Any X WHERE X is %s' etype, ask_confirm=False) |
1203 rset = self.rqlexec('Any X WHERE X is %s' % etype, ask_confirm=False) |
1204 pb = ProgressBar(len(rset)) |
1204 pb = ProgressBar(len(rset)) |
1205 for entity in rset.entities(): |
1205 for entity in rset.entities(): |
1206 # fill cache. Do not fetch that attribute using the global rql query |
1206 # fill cache. Do not fetch that attribute using the global rql query |
1207 # since we may exhaust memory doing that.... |
1207 # since we may exhaust memory doing that.... |
1208 getattr(entity, attribute) |
1208 getattr(entity, attribute) |