+def createPage():
+ s = ConfigSubsection()
+ s.uri = ConfigText(default="http://", fixed_size=False)
+ s.title = ConfigText(
+ default = "Page #" + str(len(config.plugins.CurlyTx.pages) + 1),
+ fixed_size = False
+ )
+ return s
+
+def loadDefaultPageOptions():
+ defaults = []
+ for i in range(0, len(config.plugins.CurlyTx.pages)):
+ defaults.append((str(i), config.plugins.CurlyTx.pages[i].title.value))
+ print "CurlyTx", defaults
+ if hasattr(config.plugins.CurlyTx, "defaultPage"):
+ config.plugins.CurlyTx.defaultPage.setChoices(defaults, "0")
+ else:
+ config.plugins.CurlyTx.defaultPage = ConfigSelection(defaults, "0")
+