~bladernr/checkbox/1095713-set-pipefail-on-sleep-jobs

« back to all changes in this revision

Viewing changes to plugins/category_prompt.py

  • Committer: Marc Tardif
  • Date: 2008-01-01 05:30:11 UTC
  • mto: This revision was merged to the branch mainline in revision 78.
  • Revision ID: marc.tardif@canonical.com-20080101053011-lyvb9a9p5u6tngk5
Moved version information to configuration file and introduced concept of attributes to validate configuration files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
class CategoryPrompt(Plugin):
5
5
 
 
6
    attributes = ["category"]
 
7
 
6
8
    def register(self, manager):
7
9
        super(CategoryPrompt, self).register(manager)
8
10
        self._manager.reactor.call_on(("interface", "show-category"), self.show_category)