def append(self, obj):
        if type(obj) == dict:
            row = []
            for field in self.fields.names():
                row.append(obj.get(field))
        else:
            row = obj

        string = u"<tr>"
        for value in row:
            string += u"  <td>%s</td>\n" % value

        string += u"</tr>\n"
        self.handle.write(string.encode('utf-8'))
dataset/ETHPy150Open Stiivi/brewery/brewery/ds/html_target.py/SimpleHTMLDataTarget.append/original