コード例 #1
0
ファイル: sesqlreindex.py プロジェクト: pombredanne/sesql
    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'])
コード例 #2
0
ファイル: sesqlupdate.py プロジェクト: pombredanne/sesql
    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)
コード例 #3
0
ファイル: sesqlupdate.py プロジェクト: pombredanne/sesql
    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)
コード例 #4
0
ファイル: sesqlreindex.py プロジェクト: LBdN/sesql
    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']
            )