Merge commit 'f82f4c25827cd04b22c3c9ca8948653f8b79b9e5'
This commit is contained in:
commit
8712ce0ad2
|
@ -25,7 +25,7 @@ class NodeParser:
|
||||||
|
|
||||||
def xpath(self, xpath, extra_ns=None):
|
def xpath(self, xpath, extra_ns=None):
|
||||||
return self._xpath(self.node, xpath, extra_ns)
|
return self._xpath(self.node, xpath, extra_ns)
|
||||||
|
|
||||||
def doc_xpath(self, xpath, extra_ns=None):
|
def doc_xpath(self, xpath, extra_ns=None):
|
||||||
root = self.node.getroottree().getroot()
|
root = self.node.getroottree().getroot()
|
||||||
return self._xpath(root, xpath, extra_ns)
|
return self._xpath(root, xpath, extra_ns)
|
||||||
|
@ -62,8 +62,8 @@ class NodeParser:
|
||||||
extensions = {}
|
extensions = {}
|
||||||
extra_ns = {'camunda': CAMUNDA_MODEL_NS}
|
extra_ns = {'camunda': CAMUNDA_MODEL_NS}
|
||||||
extension_nodes = self.xpath('.//bpmn:extensionElements/camunda:properties/camunda:property', extra_ns)
|
extension_nodes = self.xpath('.//bpmn:extensionElements/camunda:properties/camunda:property', extra_ns)
|
||||||
for node in extension_nodes:
|
for ex_node in extension_nodes:
|
||||||
extensions[node.get('name')] = node.get('value')
|
extensions[ex_node.get('name')] = ex_node.get('value')
|
||||||
return extensions
|
return extensions
|
||||||
|
|
||||||
def _get_lane(self):
|
def _get_lane(self):
|
||||||
|
@ -82,4 +82,4 @@ class NodeParser:
|
||||||
nsmap.update(extra_ns)
|
nsmap.update(extra_ns)
|
||||||
else:
|
else:
|
||||||
nsmap = self.nsmap
|
nsmap = self.nsmap
|
||||||
return node.xpath(xpath, namespaces=nsmap)
|
return node.xpath(xpath, namespaces=nsmap)
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
"""__init.py__"""
|
|
@ -21,6 +21,7 @@ setup(name='SpiffWorkflow',
|
||||||
author_email='dan@sartography.com',
|
author_email='dan@sartography.com',
|
||||||
license='lGPLv2',
|
license='lGPLv2',
|
||||||
packages=find_packages(exclude=['tests', 'tests.*']),
|
packages=find_packages(exclude=['tests', 'tests.*']),
|
||||||
|
package_data={'SpiffWorkflow.bpmn.parser.schema': ['*.xsd']},
|
||||||
install_requires=['configparser', 'lxml', 'celery', 'dateparser', 'pytz',
|
install_requires=['configparser', 'lxml', 'celery', 'dateparser', 'pytz',
|
||||||
# required for python 3.7 - https://stackoverflow.com/a/73932581
|
# required for python 3.7 - https://stackoverflow.com/a/73932581
|
||||||
'importlib-metadata<5.0; python_version <= "3.7"'],
|
'importlib-metadata<5.0; python_version <= "3.7"'],
|
||||||
|
|
Loading…
Reference in New Issue