mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-14 21:03:18 +01:00
Add static include_in_* when double quoted.
This commit is contained in:
parent
cf7f84c886
commit
dd2a076b6f
1 changed files with 12 additions and 8 deletions
|
|
@ -1199,14 +1199,18 @@ class Story(Requestable):
|
||||||
# includelist prevents infinite recursion of include_in_'s
|
# includelist prevents infinite recursion of include_in_'s
|
||||||
if self.hasConfig("include_in_"+listname) and listname not in includelist:
|
if self.hasConfig("include_in_"+listname) and listname not in includelist:
|
||||||
for k in self.getConfigList("include_in_"+listname):
|
for k in self.getConfigList("include_in_"+listname):
|
||||||
ldorepl = doreplacements
|
## allow for static string includes when double quoted ""
|
||||||
if k.endswith('.NOREPL'):
|
if k.startswith('"') and k.endswith('"'):
|
||||||
k = k[:-len('.NOREPL')]
|
retlist.append(k[1:-1])
|
||||||
ldorepl = False
|
else:
|
||||||
retlist.extend(self.getList(k,removeallentities=False,
|
ldorepl = doreplacements
|
||||||
doreplacements=ldorepl,includelist=includelist+[listname],
|
if k.endswith('.NOREPL'):
|
||||||
skip_cache=True,
|
k = k[:-len('.NOREPL')]
|
||||||
seen_list=seen_list))
|
ldorepl = False
|
||||||
|
retlist.extend(self.getList(k,removeallentities=False,
|
||||||
|
doreplacements=ldorepl,includelist=includelist+[listname],
|
||||||
|
skip_cache=True,
|
||||||
|
seen_list=seen_list))
|
||||||
else:
|
else:
|
||||||
|
|
||||||
if not self.isList(listname):
|
if not self.isList(listname):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue