def getConfigList(self): # reload titles loadDefaultPageOptions() cfg = config.plugins.CurlyTx list = [getConfigListEntry(_("Page:") + " " + x.title.value, x.uri) for x in cfg.pages] if len(cfg.pages): list.append(getConfigListEntry(_("Default page"), cfg.defaultPage)) list.append(getConfigListEntry(_("Show in main menu"), cfg.menuMain)) list.append(getConfigListEntry(_("Show in extensions menu"), cfg.menuExtensions)) list.append(getConfigListEntry(_("Menu title"), cfg.menuTitle)) list.append(getConfigListEntry(_("Page feed URL"), cfg.feedUrl)) return list
def getConfigList(self): #reload titles loadDefaultPageOptions() cfg = config.plugins.CurlyTx list = [ getConfigListEntry(_("Page:") + " " + x.title.value, x.uri) for x in cfg.pages ] if len(cfg.pages): list.append(getConfigListEntry(_("Default page"), cfg.defaultPage)) list.append(getConfigListEntry(_("Show in main menu"), cfg.menuMain)) list.append( getConfigListEntry(_("Show in extensions menu"), cfg.menuExtensions)) list.append(getConfigListEntry(_("Menu title"), cfg.menuTitle)) list.append(getConfigListEntry(_("Page feed URL"), cfg.feedUrl)) return list