From 7504e34e0bd6d4fc0c903b956d2b2f2474648b25 Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Wed, 4 Aug 2021 09:18:17 +0200 Subject: [PATCH] M #-: PyONE: rename buildChildren _buildChildren (#1393) * remove python2-pyone * adopt to generateDS 2.39 (cherry picked from commit 172fe4a2f2754fbcb05cd7648d048430263ec7ed) --- src/oca/python/Makefile | 6 +----- src/oca/python/pyone/util.py | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/oca/python/Makefile b/src/oca/python/Makefile index 047989d35a..97a1ffef3e 100644 --- a/src/oca/python/Makefile +++ b/src/oca/python/Makefile @@ -14,8 +14,7 @@ # limitations under the License. # Use full path to ensure virtualenv compatibility -PYTHON = $(shell which python2) -PYTHON3 = $(shell which python3) +PYTHON = $(shell which python3) GDS = $(shell which generateDS) PWD = $(shell pwd) @@ -46,9 +45,6 @@ dist: install: ${PYTHON} setup.py install ${root} -install3: - ${PYTHON3} setup.py install ${root} - doc: mkdir -p doc PYTHONPATH=$(PWD) pdoc --overwrite --html --html-no-source --html-dir doc pyone diff --git a/src/oca/python/pyone/util.py b/src/oca/python/pyone/util.py index 69cb61602c..dfee45ba46 100644 --- a/src/oca/python/pyone/util.py +++ b/src/oca/python/pyone/util.py @@ -137,6 +137,6 @@ class TemplatedType(object): ''' Mixin class for Templated bindings ''' - def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): + def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None): if not build_template_node(self, nodeName_, child_): - super(TemplatedType, self).buildChildren(child_,node,nodeName_,fromsubclass_,gds_collector_) + super(TemplatedType, self)._buildChildren(child_,node,nodeName_,fromsubclass_,gds_collector_)