def edit_patterns(cls, button): win = JSONBasedEditor(Command, cls.all_commands(), filename=cls.COMS_FILE, title=_("Edit Custom Commands")) # Cache busting cls._commands = None win.show()
def edit_patterns(cls, button): cls.commands = cls._get_saved_searches() win = JSONBasedEditor(Command, cls.commands, filename=cls.COMS_FILE, title=_("Edit Custom Commands")) win.show()
def test_JSONBasedEditor(self): ed = JSONBasedEditor(Command, self.commands, None, "title") ed.show_now() ed.destroy()