Comparison

tools/ejabberd2prosody.lua @ 5309:2da869d95271

ejabberd2prosody.lua: Replace util.logger with a dummy before requiring util.serialization
author Kim Alvefur <zash@zash.se>
date Thu, 24 Jan 2013 21:48:45 +0100
parent 5023:dcc8e789df36
child 5310:bc60cad47397
comparison
equal deleted inserted replaced
5308:fd3219d64414 5309:2da869d95271
17 17
18 local erlparse = require "erlparse"; 18 local erlparse = require "erlparse";
19 19
20 prosody = {}; 20 prosody = {};
21 21
22 package.loaded["util.logger"] = {init = function() return function() end; end}
22 local serialize = require "util.serialization".serialize; 23 local serialize = require "util.serialization".serialize;
23 local st = require "util.stanza"; 24 local st = require "util.stanza";
24 package.loaded["util.logger"] = {init = function() return function() end; end}
25 local dm = require "util.datamanager" 25 local dm = require "util.datamanager"
26 dm.set_data_path("data"); 26 dm.set_data_path("data");
27 27
28 function build_stanza(tuple, stanza) 28 function build_stanza(tuple, stanza)
29 assert(type(tuple) == "table", "XML node is of unexpected type: "..type(tuple)); 29 assert(type(tuple) == "table", "XML node is of unexpected type: "..type(tuple));