comparison backends/directory.js @ 33:62cbb1c49bc5

Fix publish; add owner metadata field; add HTTP module and Atom HTTP module.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 05 Nov 2010 14:01:45 +0100
parents b2faacfefb90
children dcf1f09f8cee
comparison
equal deleted inserted replaced
32:8735fc6f6f53 33:62cbb1c49bc5
115 115
116 for (var i in files) { 116 for (var i in files) {
117 var file = files[i]; 117 var file = files[i];
118 var nodeID = file.replace(/\.json$/, ''); 118 var nodeID = file.replace(/\.json$/, '');
119 119
120 var data = fs.readFileSync(dir+'/'+file); 120 var data = fs.readFileSync(dir+'/'+file).toString();
121 121
122 var obj = eval('('+data+')'); 122 var obj = eval('('+data+')');
123 backend.list[nodeID] = endParsing(obj); 123 backend.list[nodeID] = endParsing(obj);
124 124
125 for (var j in Node.prototype) 125 for (var j in Node.prototype)