We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61cbdc7 commit 89762e9Copy full SHA for 89762e9
pywps/inout/outputs.py
@@ -525,16 +525,8 @@ def url(self):
525
526
def _load_template(self):
527
from jinja2 import PackageLoader
528
-
529
- # TODO: Use TEMPLATE_ENV directly
530
- from pywps.response import RelEnvironment
531
532
- template_env = RelEnvironment(
533
- loader=PackageLoader('pywps', 'templates'),
534
- trim_blocks=True, lstrip_blocks=True,
535
- autoescape=True, )
536
537
- self._template = template_env.get_template(self._xml_template)
+ from pywps.response.basic import TEMPLATE_ENV
+ self._template = TEMPLATE_ENV.get_template(self._xml_template)
538
539
540
class MetaLink4(MetaLink):
0 commit comments