def setChecked(src, ids=[], dpth = 0, key = ''):
    """ Recursively find checked item."""
    #tabs = lambda n: ' ' * n * 4 # or 2 or 8 or...
    #brace = lambda s, n: '%s%s%s' % ('['*n, s, ']'*n)

    if isinstance(src, dict):
        for key, value in src.iteritems():
            setChecked(value, ids, dpth + 1, key)
    elif isinstance(src, list):
        for litem in src:
            if isinstance(litem, types.DictType):
	            if "id" in litem and litem["id"] in ids:
	            	litem["checked"] = True
	            	litem["select"] = True
            setChecked(litem, ids, dpth + 2)