Commit 20785187 by Michael DeHaan

Allow subelements to work right with skipped results.

parent bd10aad7
...@@ -38,6 +38,8 @@ class LookupModule(object): ...@@ -38,6 +38,8 @@ class LookupModule(object):
"subelements lookup expects a list of two items, first a dict or a list, and second a string") "subelements lookup expects a list of two items, first a dict or a list, and second a string")
if isinstance(terms[0], dict): # convert to list: if isinstance(terms[0], dict): # convert to list:
if terms[0].get('skipped',False) != False:
return []
elementlist = [] elementlist = []
for key in terms[0].iterkeys(): for key in terms[0].iterkeys():
elementlist.append(terms[0][key]) elementlist.append(terms[0][key])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment