'Formats data on \'info\' for doku wiki table output'

def reporting_doku(self, info, order, noheaders):

    outputheaders = ''
    outputbody = ''
    sep1 = '^'
    sep2 = '|'
    info_count = 0
    for item in info:
        item_count = 0
        for key in order:
            if (info_count == 0):
                outputheaders += (sep1 + key)
            if (key in item.keys()):
                outputbody += (sep2 + item[key])
            else:
                outputbody += (sep2 + '-')
            item_count = (item_count + 1)
        info_count = (info_count + 1)
        outputbody += (sep2 + '\n')
    outputheaders += (sep1 + '\n')
    if noheaders:
        outputheaders = ''
    return (outputheaders + outputbody)
