]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PythonAPI/model/roots.py
Salome HOME
updated copyright message
[modules/shaper.git] / src / PythonAPI / model / roots.py
index 31316103e34d389ec447cb48c0fe2e69891d9cc2..09c87a7e82cff38e4d927ab8c2ff4533edf0f502 100644 (file)
@@ -1,6 +1,24 @@
+# Copyright (C) 2014-2023  CEA, EDF
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
 """Abstract root classes of user-defined Python features producing a Body
 Author: Daniel Brunier-Coulin
-Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 """
 
 import ModelAPI
@@ -15,7 +33,7 @@ class Feature(ModelAPI.ModelAPI_Feature):
     def addRealInput(self, inputid):
         """F.addRealInput(str) -- add real attribute"""
         self.data().addAttribute(inputid,
-                                 ModelAPI.ModelAPI_AttributeDouble_typeId())
+                                 ModelAPI.ModelAPI_AttributeDouble.typeId())
 
     def getRealInput(self, inputid):
         """F.getRealInput(str) -- get real value of the attribute"""