Skip to content
Snippets Groups Projects
Commit 5113e889 authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update sams_app.py to pass test_app_proxies_elements_type_sams_proxy

parent 0dd4fcb6
No related branches found
No related tags found
1 merge request!2Resolve "API Proxy definition in SAMSApp manifest ermöglichen"
...@@ -5,6 +5,7 @@ from .exceptions import ( ...@@ -5,6 +5,7 @@ from .exceptions import (
, DefaultLanguageDictMissing , DefaultLanguageDictMissing
, FunctionNotExists , FunctionNotExists
) )
from .sams_proxy import SAMSProxy
import sys import sys
def eprint(*args, **kwargs): def eprint(*args, **kwargs):
...@@ -70,7 +71,7 @@ class SAMSApp: ...@@ -70,7 +71,7 @@ class SAMSApp:
def proxies(self): def proxies(self):
proxies = [] proxies = []
for definition in self.manifest.get('proxies', []): for definition in self.manifest.get('proxies', []):
proxies.append(definition) proxies.append(SAMSProxy(definition))
return proxies return proxies
def menu(self, langCode: str, urlPrefix: str = '/') -> list: def menu(self, langCode: str, urlPrefix: str = '/') -> list:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment