def _string_to_dictsql(self, part):
self._logger.debug("<STR_LIT>" + str(part[<NUM_LIT:0>]) + "<STR_LIT>" + part.getName())<EOL>if part.getName() == '<STR_LIT>':<EOL><INDENT>self._logger.debug("<STR_LIT>" + part[<NUM_LIT:0>] + "<STR_LIT>")<EOL>dictsql = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT:string>': part[<NUM_LIT:0>],<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:error>': False<EOL>},<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': part[<NUM_LIT:0>][<NUM_LIT:1>:]<EOL>}<EOL><DEDENT>elif part.getName() == '<STR_LIT>':<EOL><INDENT>self._logger.debug("<STR_LIT>" + part.vrf_rt + "<STR_LIT>")<EOL>dictsql = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:string>': part.vrf_rt,<EOL>'<STR_LIT:error>': False<EOL>},<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': part.vrf_rt<EOL>}<EOL>dictsql = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT:string>': part.vrf_rt,<EOL>'<STR_LIT>': '<STR_LIT:text>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:error>': False<EOL>},<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:name>',<EOL>'<STR_LIT>': part.vrf_rt<EOL>},<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:description>',<EOL>'<STR_LIT>': part.vrf_rt<EOL>}<EOL>},<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': part.vrf_rt<EOL>}<EOL>}<EOL><DEDENT>else:<EOL><INDENT>self._logger.debug("<STR_LIT>" + part[<NUM_LIT:0>] + "<STR_LIT>")<EOL>dictsql = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT:string>': part[<NUM_LIT:0>],<EOL>'<STR_LIT>': '<STR_LIT:text>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:error>': False<EOL>},<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:name>',<EOL>'<STR_LIT>': part[<NUM_LIT:0>]<EOL>},<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:description>',<EOL>'<STR_LIT>': part[<NUM_LIT:0>]<EOL>}<EOL>},<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': part[<NUM_LIT:0>]<EOL>}<EOL>}<EOL><DEDENT>return dictsql<EOL>
Do magic matching of single words or quoted string