Logo Search packages:      
Sourcecode: falcon version File versions  Download package

def falcon::plugin::FalconPlugin::configure (   cls  )  [inherited]

Configure this plugin

Definition at line 90 of file plugin.py.

00090                       :
        """Configure this plugin"""
        while True:
            current = dict([(x.key, cls.conf[x.key]) for x in cls.conf.questions])
            was_enabled = cls.conf.enabled
            form = falcon.questions.QuestionForm(cls.name, cls.conf.questions)
            answers = form.run(current)
            if not answers:
                break
            for k in answers:
                cls.conf[k] = answers[k]

            if cls.conf.enabled and not was_enabled:
                # Plugin was just enabled, run its constructor and config
                enabled_plugins.append(cls())
                current = dict([(x.key, cls.conf[x.key]) for x in cls.conf.questions])
            else:
                break

    # Before anything is done, right after argument parsing
    def pre_action(self, action, args): pass


Generated by  Doxygen 1.6.0   Back to index