Mercurial > psgxs
comparison nodes.js @ 12:9a6b8b3357c6
Use new functions like console.log instead of sys.puts, and aerate a bit.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 27 Aug 2010 01:14:40 +0200 |
parents | 4c93e76fa371 |
children | 95fc43d1bd54 |
comparison
equal
deleted
inserted
replaced
11:0ed3c06c5191 | 12:9a6b8b3357c6 |
---|---|
39 if (params && params['pubsub#creator']) | 39 if (params && params['pubsub#creator']) |
40 this.owner.push(params['pubsub#creator']); | 40 this.owner.push(params['pubsub#creator']); |
41 | 41 |
42 if (config.enabled('publisher-affiliation')) | 42 if (config.enabled('publisher-affiliation')) |
43 this.publisher = []; | 43 this.publisher = []; |
44 | |
44 if (config.enabled('publish-only-affiliation')) | 45 if (config.enabled('publish-only-affiliation')) |
45 this.publishOnly = []; | 46 this.publishOnly = []; |
47 | |
46 if (config.enabled('member-affiliation')) | 48 if (config.enabled('member-affiliation')) |
47 this.member = []; | 49 this.member = []; |
50 | |
48 if (config.enabled('outcast-affiliation')) | 51 if (config.enabled('outcast-affiliation')) |
49 this.outcast = []; | 52 this.outcast = []; |
53 | |
50 if (config.enabled('meta-data')) | 54 if (config.enabled('meta-data')) |
51 this.metadata = new Configuration(service_configuration.node_metadata, params); | 55 this.metadata = new Configuration(service_configuration.node_metadata, params); |
56 | |
52 if (config.enabled('config-node')) | 57 if (config.enabled('config-node')) |
53 this.configuration = new Configuration(service_configuration.node_config, params); | 58 this.configuration = new Configuration(service_configuration.node_config, params); |
59 | |
54 if (config.enabled('subscription-options')) | 60 if (config.enabled('subscription-options')) |
55 this.subsConfig = new Configuration(service_configuration.subscribe_options, params); | 61 this.subsConfig = new Configuration(service_configuration.subscribe_options, params); |
62 | |
56 return this; | 63 return this; |
57 }; | 64 }; |
58 | 65 |
59 exports.Node.prototype = { | 66 exports.Node.prototype = { |
60 setItem: function(name, content) { | 67 setItem: function(name, content) { |