comparison modules/mod_retrieve.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 8735fc6f6f53
comparison
equal deleted inserted replaced
29:e007a6364bf0 30:b2faacfefb90
8 // SECTION 5.6: Retrieve Subscriptions 8 // SECTION 5.6: Retrieve Subscriptions
9 exports.retrieveSubscriptions = { 9 exports.retrieveSubscriptions = {
10 type: 'get', 10 type: 'get',
11 child: 'pubsub', 11 child: 'pubsub',
12 ns: NS.PUBSUB, 12 ns: NS.PUBSUB,
13 pschild: 'subscriptions', 13 child2: 'subscriptions',
14 func: function(response, stanza, request) { 14 func: function(response, stanza, request) {
15 if (!config.enabled('retrieve-subscriptions')) 15 if (!config.enabled('retrieve-subscriptions'))
16 return makeError(response, errors.subscriptions_retrieval_not_supported.n); 16 return makeError(response, errors.subscriptions_retrieval_not_supported.n);
17 17
18 var nodeID = request.getAttribute('node'); 18 var nodeID = request.getAttribute('node');
36 // SECTION 5.7: Retrieve Affiliations 36 // SECTION 5.7: Retrieve Affiliations
37 exports.retrieveAffiliations = { 37 exports.retrieveAffiliations = {
38 type: 'get', 38 type: 'get',
39 child: 'pubsub', 39 child: 'pubsub',
40 ns: NS.PUBSUB, 40 ns: NS.PUBSUB,
41 pschild: 'affiliations', 41 child2: 'affiliations',
42 func: function(response, stanza, request) { 42 func: function(response, stanza, request) {
43 if (!config.enabled('retrieve-affiliations')) 43 if (!config.enabled('retrieve-affiliations'))
44 return makeError(response, errors.affiliations_retrieval_not_supported.n); 44 return makeError(response, errors.affiliations_retrieval_not_supported.n);
45 45
46 var nodeID = request.getAttribute('node'); 46 var nodeID = request.getAttribute('node');
65 // SECTION 6.5: Retrieve Items from a Node 65 // SECTION 6.5: Retrieve Items from a Node
66 exports.retrieveItems = { 66 exports.retrieveItems = {
67 type: 'get', 67 type: 'get',
68 child: 'pubsub', 68 child: 'pubsub',
69 ns: NS.PUBSUB, 69 ns: NS.PUBSUB,
70 pschild: 'items', 70 child2: 'items',
71 func: function(response, stanza, request) { 71 func: function(response, stanza, request) {
72 if (!config.enabled('retrieve-items')) 72 if (!config.enabled('retrieve-items'))
73 return makeError(response, errors.sub.default_options.node_configuration_not_supported.n); 73 return makeError(response, errors.sub.default_options.node_configuration_not_supported.n);
74 74
75 var nodeID = request.getAttribute('node'); 75 var nodeID = request.getAttribute('node');