Append an attribute name/value into L{Content.data}. @param name: The attribute name @type name: basestring @param value: The attribute's value @type value: basestring @param content: The current content being unmarshalled. @type content: L{Co
(self, name, value, content)
| 124 | self.append_attribute(name, value, content) |
| 125 | |
| 126 | def append_attribute(self, name, value, content): |
| 127 | """ |
| 128 | Append an attribute name/value into L{Content.data}. |
| 129 | @param name: The attribute name |
| 130 | @type name: basestring |
| 131 | @param value: The attribute's value |
| 132 | @type value: basestring |
| 133 | @param content: The current content being unmarshalled. |
| 134 | @type content: L{Content} |
| 135 | """ |
| 136 | key = name |
| 137 | key = '_%s' % reserved.get(key, key) |
| 138 | setattr(content.data, key, value) |
| 139 | |
| 140 | def append_children(self, content): |
| 141 | """ |