X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=dbgenerate.js;h=5737442bced072884e214eef47ef91d9912777d0;hb=8518e72ad4aecfd184ed8a6334cb71a82650c820;hp=c2913d692f69942376111c8231b32be6a648eca9;hpb=6479e022fc100f22585d87b8ccbc656e2097b940;p=app.Builder.js diff --git a/dbgenerate.js b/dbgenerate.js index c2913d692..5737442bc 100644 --- a/dbgenerate.js +++ b/dbgenerate.js @@ -100,7 +100,7 @@ var map = { 'time' : 'string', //bogus 'int' : 'int', 'bigint' : 'int', - + 'double' : 'float', 'tinyint' : 'int', 'decimal' : 'float', 'float' : 'float', @@ -459,6 +459,7 @@ readers.forEach(function(reader) { var dir = GLib.get_home_dir() + '/.Builder/Roo.data.JsonReader'; if (!File.isDirectory(dir)) { + print("mkdir " + dir); File.mkdir(dir); } @@ -486,6 +487,7 @@ readers.forEach(function(reader) { // GRIDS dir = GLib.get_home_dir() + '/.Builder/Roo.GridPanel'; if (!File.isDirectory(dir)) { + print("mkdir " + dir); File.mkdir(dir); } @@ -633,6 +635,7 @@ readers.forEach(function(reader) { dir = GLib.get_home_dir() + '/.Builder/Roo.form.Form'; if (!File.isDirectory(dir)) { + print("mkdir " + dir); File.mkdir(dir); } var formElements = []; @@ -642,9 +645,13 @@ readers.forEach(function(reader) { continue; } formHeight += reader.form[k].xtype == 'TextArea' ? 100 : 30; + formElements.push(reader.form[k]); } - formElements.push(reader.form['id']); + if (reader.form['id']) { + formElements.push(reader.form['id']); + } + print("WRITE: " + dir + '/' + cfg.DBNAME + '_' + reader.table + '.json'); var frmCfg = @@ -703,6 +710,7 @@ readers.forEach(function(reader) { dir = GLib.get_home_dir() + '/.Builder/Roo.form.ComboBox'; if (!File.isDirectory(dir)) { + print("mkdir " + dir); File.mkdir(dir); } @@ -725,6 +733,7 @@ readers.forEach(function(reader) { dir = GLib.get_home_dir() + '/.Builder/Roo.LayoutDialog'; if (!File.isDirectory(dir)) { + print("mkdir " + dir); File.mkdir(dir); } var formElements = [];