From: Paul RASCLE Date: Tue, 9 Apr 2019 08:00:54 +0000 (+0200) Subject: fix for plugin padder X-Git-Tag: V9_3_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ffe4e577c9b25b46419d3917f45349091888fd71;p=modules%2Fkernel.git fix for plugin padder --- diff --git a/src/KERNEL_PY/kernel/datamodeler.py b/src/KERNEL_PY/kernel/datamodeler.py index 6c7389125..f903d655a 100644 --- a/src/KERNEL_PY/kernel/datamodeler.py +++ b/src/KERNEL_PY/kernel/datamodeler.py @@ -26,7 +26,7 @@ __author__="gboulant" __date__ ="$15 avr. 2010 19:44:17$" -#from .uiexception import DevelException +from .uiexception import DevelException # Most usable class types TypeString= "".__class__ @@ -38,7 +38,6 @@ __ref_list = [] TypeList = __ref_list.__class__ __ref_dict = {} TypeDictionnary = __ref_dict.__class__ -from .enumerate import Enumerate # There is no control to do for these attributes. They are attributes for the # class management and not data of the model. @@ -128,9 +127,7 @@ class DataModeler: self.__setattr__(name,default) def __setattr__(self, name, val): - print (self, name, val) if name in UNCHECKED_ATTRIBUTES: - #self.__dict__[name] = val object.__setattr__(self, name, val) return @@ -159,13 +156,11 @@ class DataModeler: def __getattribute__(self, name): if name in UNCHECKED_ATTRIBUTES: - return object.__getattribute__(self, name) + return object.__getattribute__(self, name) if name in DataModeler.__dict__: - return object.__getattribute__(self, name) + return object.__getattribute__(self, name) - #import traceback - #traceback.print_stack() if name not in self._typemap: raise DevelException("The class has no attribute "+str(name)) # The attribute coulb be requested while it has not been created yet (for @@ -175,10 +170,6 @@ class DataModeler: return object.__getattribute__(self, name) - - - - def __isNotValidType(self, name, val): isNotValid = ( ( self._typemap[name] is not None) and