def handle(self, *classes, **options): """ Handle the command """ self.options = options if not classes: classes = typemap.all_class_names() for klass in classes: self.reindex(klass, reindex=options['reindex'], flush=options['flush'], dry_run=options['dry_run'])
def handle(self, *fields, **options): """ Handle the command """ if not fields: print "Syntax : manage.py sesqlupdate [--class <classes>] <columns>" print " - classes is a comma-separated list of object classes" print " - columns is a (space-seperated) list of columns to reindex" if not options['class']: classes = typemap.all_class_names() else: classes = options['class'].split(',') self.update(classes, fields)
def handle(self, *fields, **options): """ Handle the command """ if not fields: print "Syntax : manage.py sesqlupdate [--class <classes>] <columns>" print " - classes is a comma-separated list of object classes" print " - columns is a (space-seperated) list of columns to reindex" if not options["class"]: classes = typemap.all_class_names() else: classes = options["class"].split(",") self.update(classes, fields)
def handle(self, *classes, **options): """ Handle the command """ self.options = options if not classes: classes = typemap.all_class_names() for klass in classes: self.reindex( klass, reindex=options['reindex'], flush=options['flush'], dry_run=options['dry_run'] )