Changeset 4262
- Timestamp:
- 03/04/09 14:28:04 (4 years ago)
- Files:
-
- 1 modified
-
branch/UmitPlugins/umit/plugin/Parser.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/UmitPlugins/umit/plugin/Parser.py
r4261 r4262 20 20 21 21 import re 22 22 23 from xml.dom.minidom import parse, parseString 24 from umit.core.UmitLogging import log 23 25 24 26 class Variable(object): … … 59 61 raise Exception("Unable to set a valid type") 60 62 61 print ">>> Variable()", self._name, self._value63 log.debug(">>> Variable named '%s' allocate with value '%s'" % (self._name, self._value)) 62 64 63 65 @staticmethod … … 118 120 """ 119 121 if not Variable.setted(self._value): 120 print "check_validity(): Value not setted"122 log.debug("check_validity(): value is not setted. Falling back to default value") 121 123 self._value = self._def_val 122 124 elif not isinstance(self._value, self.__class__.element_type): 123 print "check_validity(): Not same type"125 log.debug("check_validity(): value is not of the type. Fallink back to default value") 124 126 self._value = self._def_val 125 127 elif not self.validate(): 126 print "check_validity(): Not valid!"128 log.debug("check_validity(): value is not valid for validate(). Fallink back to default value") 127 129 self._value = self._def_val 128 130 else: 129 print "check_validity(): OK"130 131 print "check_validity():", self._value131 log.debug("check_validity(): value is OK") 132 133 log.debug("check_validity(): Ends out value is '%s'" % self._value) 132 134 133 135 def validate(self): … … 355 357 Variable.__init__(self, value, name, def_value, desc, attrs, dict) 356 358 except Exception, err: 357 print ">>> Ignoring exception.. we are List sir ;)" 358 print err 359 pass 359 360 360 361 for child in childs:
