42 for chld
in node.getchildren():
43 if chld.tag ==
"referencedby":
45 if chld.tag ==
"references":
47 if chld.tag ==
"param":
49 if chld.tag ==
"type":
51 if chld.tag ==
"location":
57 q.append(
"id_bodyfile=(select id from files where name=?)")
58 val.append(chld.attrib[
"bodyfile"])
59 chld.attrib.pop(
"bodyfile")
61 q.append(
"id_file=(select id from files where name=?)")
62 val.append(chld.attrib[
"file"])
63 chld.attrib.pop(
"file")
66 if len(chld.attrib) == 0:
71 for chld
in node.getchildren():
72 print "WARNING: '%s' has unprocessed child elem '%s'" % (node.tag,chld.tag)
84 val.append(node.attrib[
'id'])
89 query=
"SELECT * FROM memberdef WHERE %s" %
" AND ".join(q)
92 r = g_conn.execute(query,val).fetchall()
93 except sqlite3.OperationalError,e:
94 print "SQL_ERROR:%s"%e
98 print "TEST_ERROR: Member not found in SQL DB" def extract_element(node, chld, pnl)
def process_memberdef(node)
def print_unprocessed_attributes(node)
def extract_attribute(node, attribute, pnl)