Use ini sections both w/ and w/o www. for all sites. Without takes precedence.

This commit is contained in:
Jim Miller
2013-04-05 12:08:55 -05:00
parent a5a3d284b5
commit 6b2a03dc8f
+8 -6
View File
@@ -39,16 +39,18 @@ class Configuration(ConfigParser.SafeConfigParser):
self.sectionslist = ['defaults']
if site.startswith("www."):
altsite = site.replace("www.","")
sitewith = site
sitewithout = site.replace("www.","")
else:
altsite = "www."+site
sitewith = "www."+site
sitewithout = site
self.addConfigSection(altsite)
self.addConfigSection(site)
self.addConfigSection(sitewith)
self.addConfigSection(sitewithout)
if fileform:
self.addConfigSection(fileform)
self.addConfigSection(altsite+":"+fileform)
self.addConfigSection(site+":"+fileform)
self.addConfigSection(sitewith+":"+fileform)
self.addConfigSection(sitewithout+":"+fileform)
self.addConfigSection("overrides")
self.validEntries = [