From: spo Date: Mon, 26 Oct 2015 11:23:12 +0000 (+0300) Subject: roots use tools X-Git-Tag: V_2.1.0~206^2~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6bb097f6720853409a9a5c1a3f21af12462e471f;p=modules%2Fshaper.git roots use tools --- diff --git a/src/PythonAPI/model/roots.py b/src/PythonAPI/model/roots.py index b5d05f559..798f4dac3 100644 --- a/src/PythonAPI/model/roots.py +++ b/src/PythonAPI/model/roots.py @@ -5,7 +5,7 @@ Copyright (C) 2014-20xx CEA/DEN, EDF R&D import ModelAPI -from .tools import get_value, convert_to_underscore +from model import tools class Feature(ModelAPI.ModelAPI_Feature): @@ -46,7 +46,7 @@ class Interface(): if name.startswith("get"): possible_names = [ "_" + name[3:], - "_" + convert_to_underscore(name[3:]), + "_" + tools.convert_to_underscore(name[3:]), ] for possible_name in possible_names: if hasattr(self, possible_name): @@ -63,6 +63,10 @@ class Interface(): """Return ModelAPI_Feature.""" return self._feature + def _fill_attribute(self, attribute, value, *args): + """Fill ModelAPI_Attribute* with value.""" + tools.fill_attribute(attribute, value, *args) + def setRealInput(self, inputid, value): self._feature.data().real(inputid).setValue(value)