mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
Move [section] to indiv adapters so site/Publisher gets it.
This commit is contained in:
parent
caacd1bc0c
commit
22e5e37c96
4 changed files with 16 additions and 1 deletions
|
|
@ -28,6 +28,11 @@ class SinfulDreamsComUnicornFic(BaseEfictionAdapter):
|
|||
def getPathToArchive(self):
|
||||
return '/unicorn/fic'
|
||||
|
||||
@classmethod
|
||||
def getConfigSection(cls):
|
||||
"Overriden because [domain/path] section for multiple-adapter domain."
|
||||
return cls.getSiteDomain()+cls.getPathToArchive()
|
||||
|
||||
@classmethod
|
||||
def getSiteAbbrev(self):
|
||||
return 'snfldrms-uf'
|
||||
|
|
|
|||
|
|
@ -28,6 +28,11 @@ class SinfulDreamsComWhisperedMuse(BaseEfictionAdapter):
|
|||
def getPathToArchive(self):
|
||||
return '/whispered/muse'
|
||||
|
||||
@classmethod
|
||||
def getConfigSection(cls):
|
||||
"Overriden because [domain/path] section for multiple-adapter domain."
|
||||
return cls.getSiteDomain()+cls.getPathToArchive()
|
||||
|
||||
@classmethod
|
||||
def getSiteAbbrev(self):
|
||||
return 'snfldrms-wm'
|
||||
|
|
|
|||
|
|
@ -28,6 +28,11 @@ class SinfulDreamsComWickedTemptation(BaseEfictionAdapter):
|
|||
def getPathToArchive(self):
|
||||
return '/wicked/temptation'
|
||||
|
||||
@classmethod
|
||||
def getConfigSection(cls):
|
||||
"Overriden because [domain/path] section for multiple-adapter domain."
|
||||
return cls.getSiteDomain()+cls.getPathToArchive()
|
||||
|
||||
@classmethod
|
||||
def getSiteAbbrev(self):
|
||||
return 'snfldrms-wt'
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class BaseEfictionAdapter(BaseSiteAdapter):
|
|||
@classmethod
|
||||
def getConfigSections(cls):
|
||||
"Only needs to be overriden if has additional ini sections."
|
||||
return ['base_efiction',cls.getConfigSection(),cls.getSiteDomain()+cls.getPathToArchive()]
|
||||
return ['base_efiction',cls.getConfigSection()]
|
||||
|
||||
@classmethod
|
||||
def getAcceptDomains(cls):
|
||||
|
|
|
|||
Loading…
Reference in a new issue