diff -r b5640328ffad -r fabff2813ee4 server/migractions.py --- a/server/migractions.py Thu Jul 01 09:23:39 2010 +0200 +++ b/server/migractions.py Thu Jul 01 17:46:58 2010 +0200 @@ -25,9 +25,8 @@ The following data actions are supported for now: * add an entity * execute raw RQL queries - +""" -""" from __future__ import with_statement __docformat__ = "restructuredtext en" @@ -1216,6 +1215,13 @@ self.commit() return entity + def cmd_reindex_entities(self, etypes=None): + """force reindexaction of entities of the given types or of all + indexable entity types + """ + from cubicweb.server.checkintegrity import reindex_entities + reindex_entities(self.repo.schema, self.session, etypes=etypes) + @deprecated('[3.5] use create_entity', stacklevel=3) def cmd_add_entity(self, etype, *args, **kwargs): """add a new entity of the given type"""