Allow attributes for nodes at creation via configuration file #14

Merged
merged 1 commit into from Aug 17, 2012

Conversation

Projects
None yet
2 participants
Contributor

xcurry commented Aug 14, 2012

Pubsub node creation allowed only default attributes at node creation.
This change allows the test user to specify the attributes using the
'data' attribute of the 'pubsub:create' xml element. For example:

Allow attributes for nodes at creation via configuration file
Pubsub node creation allowed only default attributes at node creation.
This change allows the test user to specify the attributes using the
'data' attribute of the 'pubsub:create' xml element. For example:

<request subst="true">
  <jabber type='pubsub:create' ack="local" node="/test" node_type="flat"
          data="[{'pubsub#access_model','open'},
                 {'pubsub#deliver_payloads','1'},
                 {'pubsub#notify_retract', '0'},
                 {'pubsub#persist_items', '0'},
                 {'pubsub#max_items', '0'},
                 {'pubsub#send_last_published_item', 'never'},
                 {'pubsub#publish_model', 'open'}]."/>
</request>

nniclausse added a commit that referenced this pull request Aug 17, 2012

Merge pull request #14 from xcurry/node_create_attrs
Allow attributes for nodes at creation via configuration file

@nniclausse nniclausse merged commit da9fe86 into processone:master Aug 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment