This commit is contained in:
yumoqing 2020-11-09 02:39:35 +08:00
parent b1cf7464ab
commit e6b30650c7
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class ObjectCache:
return o.cached_obj return o.cached_obj
return None return None
class BaseProcessor: class BaseProcessor:
@classmethod @classmethod

View File

@ -47,6 +47,7 @@ def i18nDICT(request):
l = c.langMapping.get(lang,lang) l = c.langMapping.get(lang,lang)
return json.dumps(i18n.getLangDict(l)).encode(c.website.coding) return json.dumps(i18n.getLangDict(l)).encode(c.website.coding)
class ProcessorResource(StaticResource,Url2File): class ProcessorResource(StaticResource,Url2File):
def __init__(self, prefix: str, directory: PathLike, def __init__(self, prefix: str, directory: PathLike,
*, name: Optional[str]=None, *, name: Optional[str]=None,