Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Use keys instead of attributes on BrokerContact
Browse files Browse the repository at this point in the history
Friendlier to serialization used in provisioner
  • Loading branch information
labisso committed Feb 1, 2011
1 parent 1065d79 commit 4db47a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nimboss/nimbus.py
Expand Up @@ -76,9 +76,9 @@ def create_contact_element(context):
Produces a <contact> element for a Context resource
"""
elem = ET.Element(_ctx_qname('contact'))
ET.SubElement(elem, _ctx_qname('brokerURL')).text = context.broker_uri
ET.SubElement(elem, _ctx_qname('contextID')).text = context.context_id
ET.SubElement(elem, _ctx_qname('secret')).text = context.secret
ET.SubElement(elem, _ctx_qname('brokerURL')).text = context['broker_uri']
ET.SubElement(elem, _ctx_qname('contextID')).text = context['context_id']
ET.SubElement(elem, _ctx_qname('secret')).text = context['secret']
return elem

def _ctx_qname(tag):
Expand Down

0 comments on commit 4db47a0

Please sign in to comment.