Project

General

Profile

« Previous | Next » 

Revision 318

bin/map: Fixed non-map input to set out_label

View differences:

map
47 47
    
48 48
    # Load map header
49 49
    in_is_xpaths = True
50
    out_label = None
50 51
    if map_path != None:
51 52
        import copy
52 53
        import csv
......
73 74
        stream.close()
74 75
    in_is_xml = in_is_xpaths and not in_is_db
75 76
    
76
    if in_is_xml: doc0 = minidom.parse(sys.stdin)
77
    if in_is_xml:
78
        doc0 = minidom.parse(sys.stdin)
79
        if out_label == None: out_label = doc0.documentElement.tagName
77 80
    
78 81
    def process_input(root, process_row):
79 82
        '''Inputs datasource to XML tree, mapping if needed'''

Also available in: Unified diff