Author: pekka.klarck
Date: Tue Mar 24 02:00:59 2009
New Revision: 1494

Modified:
   trunk/src/robot/variables/variables.py

Log:
fixed setting variables from variable table (modifying self.data directly didn't add key to new self._keys)

Modified: trunk/src/robot/variables/variables.py
==============================================================================
--- trunk/src/robot/variables/variables.py      (original)
+++ trunk/src/robot/variables/variables.py      Tue Mar 24 02:00:59 2009
@@ -212,8 +212,9 @@
         for rawvar in raw_variables:
             try:
                 name, value = self._get_var_table_name_and_value(rawvar)
-                if not self.data.has_key(name):
-                    self.data[name] = value
+ # self.has_key would also match if name matches extended syntax
+                if not utils.NormalizedDict.has_key(self, name):
+                    self[name] = value
             except:
rawvar.report_invalid_syntax("Setting variable '%s' failed: %s"
                                              % (rawvar.name,

Reply via email to