Mercurial > psgxs
comparison modules/mod_publish.js @ 30:b2faacfefb90
Rewrite of the module manager; fix of some modules; fix of the directory backend.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 04 Nov 2010 17:50:52 +0100 |
parents | b80ab94da447 |
children | 62cbb1c49bc5 |
comparison
equal
deleted
inserted
replaced
29:e007a6364bf0 | 30:b2faacfefb90 |
---|---|
6 // SECTION 7.1: Publish an Item to a Node | 6 // SECTION 7.1: Publish an Item to a Node |
7 exports.retrieveSub = { | 7 exports.retrieveSub = { |
8 type: 'set', | 8 type: 'set', |
9 child: 'pubsub', | 9 child: 'pubsub', |
10 ns: NS.PUBSUB, | 10 ns: NS.PUBSUB, |
11 pschild: 'publish', | 11 child2: 'publish', |
12 func: function(response, stanza, request, to) { | 12 func: function(response, stanza, request, to) { |
13 if (!config.enabled('publish')) | 13 if (!config.enabled('publish')) |
14 return makeError(response, errors.pub.publish.item_publication_not_supported.n); | 14 return makeError(response, errors.pub.publish.item_publication_not_supported.n); |
15 | 15 |
16 var nodeID = request.getAttribute('node'); | 16 var nodeID = request.getAttribute('node'); |
92 // SECTION 7.2: Delete an Item from a Node | 92 // SECTION 7.2: Delete an Item from a Node |
93 exports.retrieveSub = { | 93 exports.retrieveSub = { |
94 type: 'set', | 94 type: 'set', |
95 child: 'pubsub', | 95 child: 'pubsub', |
96 ns: NS.PUBSUB, | 96 ns: NS.PUBSUB, |
97 pschild: 'retract', | 97 child2: 'retract', |
98 func: function(response, stanza, request, to) { | 98 func: function(response, stanza, request, to) { |
99 if (!config.enabled('retract-items')) | 99 if (!config.enabled('retract-items')) |
100 return makeError(response, errors.pub.retract.item_deletion_not_supported.n); | 100 return makeError(response, errors.pub.retract.item_deletion_not_supported.n); |
101 | 101 |
102 var nodeID = request.getAttribute('node'); | 102 var nodeID = request.getAttribute('node'); |