def get_xml(self): drawing = DXB.drawing(height=None, width=None, r_id='rId0') pict = DXB.pict(height=None, width=None, r_id='rId1') rect = DXB.rect(height=None, width=None, r_id='rId2') tags = [ drawing, pict, rect, ] body = b'' for el in tags: body += el return DXB.xml(body)
def get_xml(self): drawing = DXB.drawing(height=20, width=40, r_id='rId0') pict = DXB.pict(height=21, width=41, r_id='rId1') rect = DXB.rect(height=22, width=42, r_id='rId2') tags = [ drawing, pict, rect, ] body = b'' for el in tags: body += el xml = DXB.xml(body) return xml