diff modules/mod_manage.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 6697f394301f
line wrap: on
line diff
--- a/modules/mod_manage.js
+++ b/modules/mod_manage.js
@@ -10,7 +10,7 @@ exports.manageRetrieveSub = {
 	type: 'get',
 	child: 'pubsub',
 	ns: NS.PUBSUB_OWNER,
-	pschild: 'subscriptions',
+	child2: 'subscriptions',
 	func: function(response, stanza, request, to) {
 		if (!config.enabled('manage-subscriptions'))
 			return makeError(response, errors.owner.manage_subscriptions.not_supported.n);
@@ -41,7 +41,7 @@ exports.manageRetrieveAff = {
 	type: 'get',
 	child: 'pubsub',
 	ns: NS.PUBSUB_OWNER,
-	pschild: 'affiliations',
+	child2: 'affiliations',
 	func: function(response, stanza, request, to) {
 		if (!config.enabled('modify-affiliations'))
 			return makeError(response, errors.owner.manage_affiliations.not_supported.n);
@@ -72,7 +72,7 @@ exports.modifySub = {
 	type: 'set',
 	child: 'pubsub',
 	ns: NS.PUBSUB_OWNER,
-	pschild: 'subscriptions',
+	child2: 'subscriptions',
 	func: function(response, stanza, request, to) {
 		if (!config.enabled('manage-subscriptions'))
 			return makeError(response, errors.owner.manage_subscriptions.not_supported.n); //XXX
@@ -124,7 +124,7 @@ exports.modifyAff = {
 	type: 'set',
 	child: 'pubsub',
 	ns: NS.PUBSUB_OWNER,
-	pschild: 'affiliations',
+	child2: 'affiliations',
 	func: function(response, stanza, request, to) {
 		if (!config.enabled('modify-affiliations'))
 			return makeError(response, errors.owner.manage_affiliations.not_supported.n); //XXX