def ensure_documents_indexed(): for plugin in Plugin.query(Plugin.approved is True): search.ensure_plugin_indexed(plugin)
def ensure_documents_indexed(): for plugin in Plugin.query(Plugin.approved == True): search.ensure_plugin_indexed(plugin)
def enable(self): self.approved = True self.put() search.ensure_plugin_indexed(self)