Changeset 698

Show
Ignore:
Timestamp:
06/19/08 13:45:06 (6 months ago)
Author:
sylvain
Message:

updated to use the right attribute method call

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • oss/headstock/headstock/api/pubsub.py

    r677 r698  
    9494                    if p.xml_ns in [XMPP_PUBSUB_NS]: 
    9595                        if p.xml_name == 'create': 
    96                             node.node_name = p.get_attribute('node') 
     96                            node.node_name = p.get_attribute_value('node') 
    9797            elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 
    9898                node.error = Error.from_element(i) 
     
    120120                    if p.xml_ns in [XMPP_PUBSUB_NS]: 
    121121                        if p.xml_name == 'create': 
    122                             node.node_name = p.get_attribute('node') 
     122                            node.node_name = p.get_attribute_value('node') 
    123123            elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 
    124124                node.error = Error.from_element(i) 
     
    146146                    if p.xml_ns in [XMPP_PUBSUB_NS]: 
    147147                        if p.xml_name == 'create': 
    148                             node.node_name = p.get_attribute('node') 
     148                            node.node_name = p.get_attribute_value('node') 
    149149            elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 
    150150                node.error = Error.from_element(i) 
     
    172172                    if p.xml_ns in [XMPP_PUBSUB_NS]: 
    173173                        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') 
    176176            elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 
    177177                sub.error = Error.from_element(i) 
     
    200200                    if p.xml_ns in [XMPP_PUBSUB_NS]: 
    201201                        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') 
    204204            elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 
    205205                sub.error = Error.from_element(i) 
     
    233233                    if p.xml_ns in [XMPP_PUBSUB_NS]: 
    234234                        if p.xml_name == 'publish': 
    235                             node.node_name = p.get_attribute('node') 
     235                            node.node_name = p.get_attribute_value('node') 
    236236                            for q in p.xml_children: 
    237237                                if q.xml_name == 'item': 
     
    239239                                    if q.xml_children: 
    240240                                        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)                                     
    242242            elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 
    243243                node.error = Error.from_element(i) 
     
    268268                    if p.xml_ns in [XMPP_PUBSUB_NS]: 
    269269                        if p.xml_name == 'retract': 
    270                             node.node_name = p.get_attribute('node') 
     270                            node.node_name = p.get_attribute_value('node') 
    271271                            for q in p.xml_children: 
    272272                                if q.xml_name == 'item': 
    273                                     node.item = Item(q.get_attribute('id'))                                     
     273                                    node.item = Item(q.get_attribute_value('id'))                                     
    274274            elif i.xml_ns == XMPP_CLIENT_NS and i.xml_name == 'error': 
    275275                node.error = Error.from_element(i)