Mercurial > libervia-backend
comparison libervia/backend/tools/common/template_xmlui.py @ 4074:26b7ed2817da
refactoring: rename `sat_frontends` to `libervia.frontends`
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 02 Jun 2023 14:12:38 +0200 |
parents | 4b842c1fb686 |
children |
comparison
equal
deleted
inserted
replaced
4073:7c5654c54fed | 4074:26b7ed2817da |
---|---|
22 XMLUI classes from this modules can then be iterated to create the template | 22 XMLUI classes from this modules can then be iterated to create the template |
23 """ | 23 """ |
24 | 24 |
25 from functools import partial | 25 from functools import partial |
26 from libervia.backend.core.log import getLogger | 26 from libervia.backend.core.log import getLogger |
27 from sat_frontends.tools import xmlui | 27 from libervia.frontends.tools import xmlui |
28 from sat_frontends.tools import jid | 28 from libervia.frontends.tools import jid |
29 try: | 29 try: |
30 from jinja2 import Markup as safe | 30 from jinja2 import Markup as safe |
31 except ImportError: | 31 except ImportError: |
32 # Safe marks XHTML values as usable as it. | 32 # Safe marks XHTML values as usable as it. |
33 # If jinja2 is not there, we can use a simple lamba | 33 # If jinja2 is not there, we can use a simple lamba |