mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-26 10:47:14 +01:00
Use ini sections both w/ and w/o www. for all sites. Canonical takes precedence.
This commit is contained in:
parent
c02ad3f6d5
commit
22f4cc76fc
1 changed files with 8 additions and 0 deletions
|
|
@ -37,9 +37,17 @@ class Configuration(ConfigParser.SafeConfigParser):
|
|||
def __init__(self, site, fileform):
|
||||
ConfigParser.SafeConfigParser.__init__(self)
|
||||
self.sectionslist = ['defaults']
|
||||
|
||||
if site.startswith("www."):
|
||||
altsite = site.replace("www.","")
|
||||
else:
|
||||
altsite = "www."+site
|
||||
|
||||
self.addConfigSection(altsite)
|
||||
self.addConfigSection(site)
|
||||
if fileform:
|
||||
self.addConfigSection(fileform)
|
||||
self.addConfigSection(altsite+":"+fileform)
|
||||
self.addConfigSection(site+":"+fileform)
|
||||
self.addConfigSection("overrides")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue