LIGO Metadata object class. Contains methods for parsing a LIGO
lightweight XML file and inserting it into a database, executing and SQL
query to retrive data from the database and writing it to a LIGO
lightweight XML file
|
|
|
__init__(self,
xmlparser=None,
lwtparser=None,
ldb=None)
Connects to the database and creates a cursor. |
source code
|
|
|
|
|
insert(self)
Insert the object into the database |
source code
|
|
|
parse(self,
xml)
Parses an XML document into a form read for insertion into the
database |
source code
|
|
|
|
|
select(self,
sql)
Execute an SQL select statement and stuff the results into a
dictionary. |
source code
|
|
|
set_dn(self,
dn)
Use the domain column in the process table to store the DN |
source code
|
|
|
xml(self,
ilwdchar_to_hex=True)
Convert a table dictionary to LIGO lightweight XML |
source code
|
|