equal
deleted
inserted
replaced
1 #!/usr/bin/env python |
1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- |
2 # -*- coding: utf-8 -*- |
3 # This file is part of Beremiz. |
3 # This file is part of Beremiz. |
4 # See COPYING file for copyrights details. |
4 # See COPYING file for copyrights details. |
5 |
5 |
6 from __future__ import absolute_import |
6 |
7 import os |
7 import os |
8 from lxml import etree |
8 from lxml import etree |
9 import util.paths as paths |
9 import util.paths as paths |
10 from plcopen.structures import StdBlckLibs |
10 from plcopen.structures import StdBlckLibs |
11 from XSLTransform import XSLTransform |
11 from XSLTransform import XSLTransform |
22 # merge xslt extensions for library access to query specific ones |
22 # merge xslt extensions for library access to query specific ones |
23 xsltext = [ |
23 xsltext = [ |
24 ("GetProject", lambda *_ignored: |
24 ("GetProject", lambda *_ignored: |
25 [controller.GetProject(self.debug)]), |
25 [controller.GetProject(self.debug)]), |
26 ("GetStdLibs", lambda *_ignored: |
26 ("GetStdLibs", lambda *_ignored: |
27 [lib for lib in StdBlckLibs.values()]), |
27 [lib for lib in list(StdBlckLibs.values())]), |
28 ("GetExtensions", lambda *_ignored: |
28 ("GetExtensions", lambda *_ignored: |
29 [ctn["types"] for ctn in controller.ConfNodeTypes]) |
29 [ctn["types"] for ctn in controller.ConfNodeTypes]) |
30 ] |
30 ] |
31 |
31 |
32 if ext is not None: |
32 if ext is not None: |