Project

General

Profile

« Previous | Next » 

Revision 46

Renamed modules to remove _util

View differences:

xml2db
10 10
import xml.dom.minidom
11 11

  
12 12
sys.path.append(os.path.dirname(__file__)+"/lib")
13
import xml_db
13
import db_xml
14 14

  
15 15
def env_flag(name): return name in os.environ and os.environ[name] != ''
16 16

  
......
30 30
    try:
31 31
        doc = xml.dom.minidom.parse(sys.stdin)
32 32
        row_ct_ref = [0]
33
        xml_db.xml2db(db, doc.documentElement, row_ct_ref)
33
        db_xml.xml2db(db, doc.documentElement, row_ct_ref)
34 34
        print 'Inserted '+str(row_ct_ref[0])+' rows'
35 35
        if commit: db.commit()
36 36
    finally:

Also available in: Unified diff