app/soc/logic/dicts.py
changeset 2073 6eb9b4652c80
parent 1899 c841800f3727
child 2177 e2c193e1f631
equal deleted inserted replaced
2072:eb4565a8e5b4 2073:6eb9b4652c80
   166       values = [values]
   166       values = [values]
   167 
   167 
   168     tmpresult = []
   168     tmpresult = []
   169 
   169 
   170     # Iterate over all we gathered so far
   170     # Iterate over all we gathered so far
   171     for filter in result:
   171     for current_filter in result:
   172       for value in values:
   172       for value in values:
   173         # Create a new dict from the current filter
   173         # Create a new dict from the current filter
   174         newdict = dict(filter)
   174         newdict = dict(current_filter)
   175 
   175 
   176         # And create a new dict that also has the current key/value pair
   176         # And create a new dict that also has the current key/value pair
   177         newdict[key] = value
   177         newdict[key] = value
   178         tmpresult.append(newdict)
   178         tmpresult.append(newdict)
   179 
   179