__author__="gboulant"
__date__ ="$15 avr. 2010 19:44:17$"
-from .uiexception import DevelException
+#from .uiexception import DevelException
# Most usable class types
TypeString= "".__class__
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.
"_typemap",
"_rangemap",
"_defaultmap",
- "_voidmap"
+ "_voidmap",
]
## This class is a placeholder for modeling data. An object based on this class
self.__setattr__(name,default)
def __setattr__(self, name, val):
+ print (self, name, val)
if name in UNCHECKED_ATTRIBUTES:
- self.__dict__[name] = val
+ #self.__dict__[name] = val
+ object.__setattr__(self, name, val)
return
#__GBO_DEBUG_
def __getattribute__(self, name):
if name in UNCHECKED_ATTRIBUTES:
- return self.__dict__[name]
+ return object.__getattribute__(self, name)
+ if name in DataModeler.__dict__:
+ return object.__getattribute__(self, name)
+
+ #import traceback
+ #traceback.print_stack()
if name not in self._typemap:
- raise DevelException("The class "+str(self.__class__)+" has no attribute "+str(name))
+ raise DevelException("The class has no attribute "+str(name))
# The attribute coulb be requested while it has not been created yet (for
# example if we did't call the setter before).
- if name not in self.__dict__:
+ if name not in self.__dict__.keys():
return None
-
- return self.__dict__[name]
+
+ return object.__getattribute__(self, name)
+
+
+
+
def __isNotValidType(self, name, val):
isNotValid = (