

def append(self, obj):
    if (type(obj) == dict):
        row = []
        for field in self.fields.names():
            row.append(obj.get(field))
    else:
        row = obj
    string = '<tr>'
    for value in row:
        string += ('  <td>%s</td>\n' % value)
    string += '</tr>\n'
    self.handle.write(string.encode('utf-8'))

dataset/ETHPy150Open Stiivi/brewery/brewery/ds/html_target.py SimpleHTMLDataTarget.append/original