def _get_variables_from_data(self, source, data):
     for var in data.get('variables', ()):
         yield RFVariable(source=source,
                          name=var['name'],
                          value=var['value'])
 def add_builtin_vars_for_autocomplete_and_definitions_lists(self):
     for var_name, var_value in RFGlobalVars.variables.items():
         var = RFVariable(source=None, name=var_name, value=var_value)
         self.add_var_for_autocomplete(var)
         self.add_var_for_definitions(var)