(form, initialize_only, top_level_form)
| 14911 | |
| 14912 | |
| 14913 | def _BuildResultsForSubform(form, initialize_only, top_level_form): |
| 14914 | event = top_level_form.LastButtonClicked |
| 14915 | for row_num, row in enumerate(form.Rows): |
| 14916 | for col_num, element in enumerate(row): |
| 14917 | if element.Key is not None and WRITE_ONLY_KEY in str(element.Key): |
| 14918 | continue |
| 14919 | value = None |
| 14920 | if element.Type == ELEM_TYPE_COLUMN: |
| 14921 | element.DictionaryKeyCounter = top_level_form.DictionaryKeyCounter |
| 14922 | element.ReturnValuesList = [] |
| 14923 | element.ReturnValuesDictionary = {} |
| 14924 | _BuildResultsForSubform(element, initialize_only, top_level_form) |
| 14925 | for item in element.ReturnValuesList: |
| 14926 | AddToReturnList(top_level_form, item) |
| 14927 | if element.UseDictionary: |
| 14928 | top_level_form.UseDictionary = True |
| 14929 | if element.ReturnValues[0] is not None: # if a button was clicked |
| 14930 | event = element.ReturnValues[0] |
| 14931 | |
| 14932 | if element.Type == ELEM_TYPE_FRAME: |
| 14933 | element.DictionaryKeyCounter = top_level_form.DictionaryKeyCounter |
| 14934 | element.ReturnValuesList = [] |
| 14935 | element.ReturnValuesDictionary = {} |
| 14936 | _BuildResultsForSubform(element, initialize_only, top_level_form) |
| 14937 | for item in element.ReturnValuesList: |
| 14938 | AddToReturnList(top_level_form, item) |
| 14939 | if element.UseDictionary: |
| 14940 | top_level_form.UseDictionary = True |
| 14941 | if element.ReturnValues[0] is not None: # if a button was clicked |
| 14942 | event = element.ReturnValues[0] |
| 14943 | |
| 14944 | if element.Type == ELEM_TYPE_PANE: |
| 14945 | element.DictionaryKeyCounter = top_level_form.DictionaryKeyCounter |
| 14946 | element.ReturnValuesList = [] |
| 14947 | element.ReturnValuesDictionary = {} |
| 14948 | _BuildResultsForSubform(element, initialize_only, top_level_form) |
| 14949 | for item in element.ReturnValuesList: |
| 14950 | AddToReturnList(top_level_form, item) |
| 14951 | if element.UseDictionary: |
| 14952 | top_level_form.UseDictionary = True |
| 14953 | if element.ReturnValues[0] is not None: # if a button was clicked |
| 14954 | event = element.ReturnValues[0] |
| 14955 | |
| 14956 | if element.Type == ELEM_TYPE_TAB_GROUP: |
| 14957 | element.DictionaryKeyCounter = top_level_form.DictionaryKeyCounter |
| 14958 | element.ReturnValuesList = [] |
| 14959 | element.ReturnValuesDictionary = {} |
| 14960 | _BuildResultsForSubform(element, initialize_only, top_level_form) |
| 14961 | for item in element.ReturnValuesList: |
| 14962 | AddToReturnList(top_level_form, item) |
| 14963 | if element.UseDictionary: |
| 14964 | top_level_form.UseDictionary = True |
| 14965 | if element.ReturnValues[0] is not None: # if a button was clicked |
| 14966 | event = element.ReturnValues[0] |
| 14967 | |
| 14968 | if element.Type == ELEM_TYPE_TAB: |
| 14969 | element.DictionaryKeyCounter = top_level_form.DictionaryKeyCounter |
| 14970 | element.ReturnValuesList = [] |
no test coverage detected