Select an appender and append the content to parent. @param parent: A parent node. @type parent: L{Element} @param content: The content to append. @type content: L{Content}
(self, parent, content)
| 87 | ) |
| 88 | |
| 89 | def append(self, parent, content): |
| 90 | """ |
| 91 | Select an appender and append the content to parent. |
| 92 | @param parent: A parent node. |
| 93 | @type parent: L{Element} |
| 94 | @param content: The content to append. |
| 95 | @type content: L{Content} |
| 96 | """ |
| 97 | appender = self.default |
| 98 | for a in self.appenders: |
| 99 | if a[0] == content.value: |
| 100 | appender = a[1] |
| 101 | break |
| 102 | appender.append(parent, content) |
| 103 | |
| 104 | |
| 105 | class Appender: |