(self, parent, content)
| 249 | """ |
| 250 | |
| 251 | def append(self, parent, content): |
| 252 | d = content.value |
| 253 | if self.optional(content) and len(d) == 0: |
| 254 | return |
| 255 | child = self.node(content) |
| 256 | parent.append(child) |
| 257 | for item in d.items(): |
| 258 | cont = Content(tag=item[0], value=item[1]) |
| 259 | Appender.append(self, child, cont) |
| 260 | |
| 261 | |
| 262 | class ElementWrapper(Element): |