fix: declare template paths as class attr for install handler
so subclass can override easier
This commit is contained in:
parent
7a5d0b8e67
commit
2801dc67a9
1 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# WuttJamaican -- Base package for Wutta Framework
|
# WuttJamaican -- Base package for Wutta Framework
|
||||||
# Copyright © 2023-2025 Lance Edgar
|
# Copyright © 2023-2026 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Wutta Framework.
|
# This file is part of Wutta Framework.
|
||||||
#
|
#
|
||||||
|
|
@ -87,6 +87,8 @@ class InstallHandler(GenericHandler):
|
||||||
egg_name = None
|
egg_name = None
|
||||||
schema_installed = False
|
schema_installed = False
|
||||||
|
|
||||||
|
template_paths = ["wuttjamaican:templates/install"]
|
||||||
|
|
||||||
def __init__(self, config, **kwargs):
|
def __init__(self, config, **kwargs):
|
||||||
super().__init__(config)
|
super().__init__(config)
|
||||||
|
|
||||||
|
|
@ -101,9 +103,7 @@ class InstallHandler(GenericHandler):
|
||||||
if not self.egg_name:
|
if not self.egg_name:
|
||||||
self.egg_name = self.pypi_name.replace("-", "_")
|
self.egg_name = self.pypi_name.replace("-", "_")
|
||||||
|
|
||||||
paths = [
|
paths = [self.app.resource_path(p) for p in self.template_paths]
|
||||||
self.app.resource_path("wuttjamaican:templates/install"),
|
|
||||||
]
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
paths.insert(
|
paths.insert(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue