Changeset 698
- Timestamp:
- 06/19/08 13:45:06 (6 months ago)
- Files:
-
- oss/headstock/headstock/api/pubsub.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
oss/headstock/headstock/api/pubsub.py
r677 r698 94 94 if p.xml_ns in [XMPP_PUBSUB_NS]: 95 95 if p.xml_name == 'create': 96 node.node_name = p.get_attribute ('node')96 node.node_name = p.get_attribute_value('node') 97 97 elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 98 98 node.error = Error.from_element(i) … … 120 120 if p.xml_ns in [XMPP_PUBSUB_NS]: 121 121 if p.xml_name == 'create': 122 node.node_name = p.get_attribute ('node')122 node.node_name = p.get_attribute_value('node') 123 123 elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 124 124 node.error = Error.from_element(i) … … 146 146 if p.xml_ns in [XMPP_PUBSUB_NS]: 147 147 if p.xml_name == 'create': 148 node.node_name = p.get_attribute ('node')148 node.node_name = p.get_attribute_value('node') 149 149 elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 150 150 node.error = Error.from_element(i) … … 172 172 if p.xml_ns in [XMPP_PUBSUB_NS]: 173 173 if p.xml_name == 'subscribe': 174 sub.node_name = p.get_attribute ('node')175 sub.sub_jid = p.get_attribute ('jid')174 sub.node_name = p.get_attribute_value('node') 175 sub.sub_jid = p.get_attribute_value('jid') 176 176 elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 177 177 sub.error = Error.from_element(i) … … 200 200 if p.xml_ns in [XMPP_PUBSUB_NS]: 201 201 if p.xml_name == 'subscribe': 202 sub.node_name = p.get_attribute ('node')203 sub.sub_jid = p.get_attribute ('jid')202 sub.node_name = p.get_attribute_value('node') 203 sub.sub_jid = p.get_attribute_value('jid') 204 204 elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 205 205 sub.error = Error.from_element(i) … … 233 233 if p.xml_ns in [XMPP_PUBSUB_NS]: 234 234 if p.xml_name == 'publish': 235 node.node_name = p.get_attribute ('node')235 node.node_name = p.get_attribute_value('node') 236 236 for q in p.xml_children: 237 237 if q.xml_name == 'item': … … 239 239 if q.xml_children: 240 240 payload = q.xml_children[0].clone() 241 node.item = Item(q.get_attribute ('id'), payload)241 node.item = Item(q.get_attribute_value('id'), payload) 242 242 elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 243 243 node.error = Error.from_element(i) … … 268 268 if p.xml_ns in [XMPP_PUBSUB_NS]: 269 269 if p.xml_name == 'retract': 270 node.node_name = p.get_attribute ('node')270 node.node_name = p.get_attribute_value('node') 271 271 for q in p.xml_children: 272 272 if q.xml_name == 'item': 273 node.item = Item(q.get_attribute ('id'))273 node.item = Item(q.get_attribute_value('id')) 274 274 elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 275 275 node.error = Error.from_element(i)
