kamila 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/doc/classes/Array2D.html +0 -0
- data/doc/classes/Array2D.src/M000001.html +0 -0
- data/doc/classes/Array2D.src/M000002.html +0 -0
- data/doc/classes/Array2D.src/M000003.html +0 -0
- data/doc/classes/Array2D.src/M000004.html +0 -0
- data/doc/classes/CfYiyi.html +0 -0
- data/doc/classes/CfYiyi.src/M000011.html +0 -0
- data/doc/classes/CfYiyi.src/M000012.html +0 -0
- data/doc/classes/EscapeShellCmd.html +0 -0
- data/doc/classes/EscapeShellCmd.src/M000013.html +0 -0
- data/doc/classes/Example.html +0 -0
- data/doc/classes/Example.src/M000005.html +0 -0
- data/doc/classes/Example.src/M000006.html +0 -0
- data/doc/classes/Example.src/M000007.html +0 -0
- data/doc/classes/Example.src/M000008.html +0 -0
- data/doc/classes/Method.html +0 -0
- data/doc/classes/Method.src/M000014.html +0 -0
- data/doc/classes/Method/Overload.html +0 -0
- data/doc/classes/Method/Signature.html +0 -0
- data/doc/classes/Method/Signature.src/M000015.html +0 -0
- data/doc/classes/Method/Signature.src/M000016.html +0 -0
- data/doc/classes/Method/Signature.src/M000017.html +0 -0
- data/doc/classes/Method/Signature.src/M000018.html +0 -0
- data/doc/classes/Method/Signature.src/M000019.html +0 -0
- data/doc/classes/Method/Signature.src/M000020.html +0 -0
- data/doc/classes/Method/Signature.src/M000021.html +0 -0
- data/doc/classes/Method/Signature.src/M000022.html +0 -0
- data/doc/classes/Method/Signature.src/M000023.html +0 -0
- data/doc/classes/Method/Signature.src/M000024.html +0 -0
- data/doc/classes/Method/Signature.src/M000025.html +0 -0
- data/doc/classes/Method/Signature.src/M000026.html +0 -0
- data/doc/classes/Module.html +0 -0
- data/doc/classes/MyCGI.html +0 -0
- data/doc/classes/MyCGI.src/M000034.html +0 -0
- data/doc/classes/ScanearDisco.html +0 -0
- data/doc/classes/ScanearDisco.src/M000027.html +0 -0
- data/doc/classes/ScanearDisco.src/M000028.html +0 -0
- data/doc/classes/ScanearDisco.src/M000029.html +0 -0
- data/doc/classes/ScanearDisco.src/M000030.html +0 -0
- data/doc/classes/ScanearDisco.src/M000031.html +0 -0
- data/doc/classes/ScanearDisco.src/M000032.html +0 -0
- data/doc/classes/TestEscapeShellCmd.html +0 -0
- data/doc/classes/TestEscapeShellCmd.src/M000033.html +0 -0
- data/doc/classes/Utilidades.html +0 -0
- data/doc/classes/Utilidades.src/M000009.html +0 -0
- data/doc/classes/Utilidades.src/M000010.html +0 -0
- data/doc/created.rid +0 -0
- data/doc/files/lib/Array2D_rb.html +0 -0
- data/doc/files/lib/cf_yiyi_rb.html +0 -0
- data/doc/files/lib/escape_shell_cmd_rb.html +0 -0
- data/doc/files/lib/mycgi_rb.html +0 -0
- data/doc/files/lib/overload_rb.html +0 -0
- data/doc/files/lib/scanear_disco_rb.html +0 -0
- data/doc/files/lib/utilidades_rb.html +0 -0
- data/doc/files/test/testEscapeShellCmd_rb.html +0 -0
- data/doc/files/test/testmycgi_rb.html +0 -0
- data/doc/files/test/testoverload_rb.html +0 -0
- data/doc/fr_class_index.html +0 -0
- data/doc/fr_file_index.html +0 -0
- data/doc/fr_method_index.html +0 -0
- data/doc/index.html +0 -0
- data/lib/Array2D.rb +0 -0
- data/lib/application.rb +481 -10
- data/lib/cerrar.sh +0 -0
- data/lib/cf_yiyi.rb +1 -1
- data/lib/escape_shell_cmd.rb +0 -0
- data/lib/kamila.rb +5 -5
- data/lib/mycgi.rb +0 -0
- data/lib/mypdf.rb +2 -2
- data/lib/overload.rb +1 -1
- data/lib/scanear_disco.rb +0 -0
- data/lib/smtp_tls.rb +0 -0
- data/lib/utilidades.rb +0 -0
- data/test/testEscapeShellCmd.rb +0 -0
- metadata +41 -34
data/doc/classes/Array2D.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/doc/classes/CfYiyi.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/doc/classes/Example.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/doc/classes/Method.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/doc/classes/Module.html
CHANGED
|
File without changes
|
data/doc/classes/MyCGI.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/doc/classes/Utilidades.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/doc/created.rid
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/doc/files/lib/mycgi_rb.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/doc/fr_class_index.html
CHANGED
|
File without changes
|
data/doc/fr_file_index.html
CHANGED
|
File without changes
|
data/doc/fr_method_index.html
CHANGED
|
File without changes
|
data/doc/index.html
CHANGED
|
File without changes
|
data/lib/Array2D.rb
CHANGED
|
File without changes
|
data/lib/application.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ******************** kamila version 1.0.
|
|
1
|
+
# ******************** kamila version 1.0.2 - Framework *********************
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2008 Edgar Gonzalez (egonzale.wordpress.com)
|
|
4
4
|
#
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
Email : edgargonzalezmunoz@gmail.com
|
|
37
37
|
Blog : egonzale.wordpress.com
|
|
38
38
|
Website : www.myjavaserver.com/~egonzale
|
|
39
|
-
Framework : kamila versión 1.0.
|
|
39
|
+
Framework : kamila versión 1.0.2
|
|
40
40
|
Fecha : 18 de Julio del 2008
|
|
41
41
|
=end
|
|
42
42
|
|
|
43
43
|
require "rubygems" # Libreria de gems rubyforge
|
|
44
|
-
require $kamila_lib+"utilidades" # Libreria 1.0.
|
|
44
|
+
require $kamila_lib+"utilidades" # Libreria 1.0.2 del autor.
|
|
45
45
|
require "fileutils" # Libreria de ruby
|
|
46
46
|
#require "erb" # Libreria de ruby
|
|
47
47
|
require "erubis" # Libreria de gems rubyforge: http://www.kuwata-lab.com/erubis/ es mas rapido
|
|
48
|
-
require $kamila_lib+"overload" # Libreria
|
|
48
|
+
require $kamila_lib+"overload" # Libreria 1.0.2 del autor.
|
|
49
49
|
require 'mycgi' # Libreria de cgi con ruby.
|
|
50
50
|
require "cgi" # Libreria de cgi con ruby.
|
|
51
51
|
require 'cgi/session' # Libreria de cgi con ruby.
|
|
@@ -263,7 +263,7 @@ class Application
|
|
|
263
263
|
$kamila_mensaje = $kamila_mensaje.gsub(/>/,"")
|
|
264
264
|
$kamila_mensaje = $kamila_mensaje.gsub(/"/,"'")
|
|
265
265
|
else
|
|
266
|
-
|
|
266
|
+
#$kamila_mensaje = $kamila_defaultMessages["message018"] + " " + $kamila_view
|
|
267
267
|
end
|
|
268
268
|
else
|
|
269
269
|
$kamila_mensaje = $kamila_defaultMessages["message018"] + " " + $kamila_view
|
|
@@ -371,7 +371,7 @@ class Application
|
|
|
371
371
|
return '</center>'
|
|
372
372
|
end
|
|
373
373
|
def create_meta()
|
|
374
|
-
return '<meta name="GENERATOR" content="kamila version 1.0.
|
|
374
|
+
return '<meta name="GENERATOR" content="kamila version 1.0.2">'
|
|
375
375
|
end
|
|
376
376
|
overload(:create_meta)
|
|
377
377
|
def create_meta(httpequiv,content,charset)
|
|
@@ -432,7 +432,7 @@ class Application
|
|
|
432
432
|
end
|
|
433
433
|
end
|
|
434
434
|
def create_javascript_extjs()
|
|
435
|
-
return '<link rel="stylesheet" type="text/css" href="'+$kamila_site+'/public/css/resources/css/ext-all.css"><link rel="stylesheet" type="text/css" href="'+$kamila_site+'/public/css/resources/css/file-upload.css"><script type="text/javascript" src="'+$kamila_site+'/public/js/extjs/adapter/ext/ext-base.js"></script><script type="text/javascript" src="'+$kamila_site+'/public/js/extjs/ext-all.js"></script><script type="text/javascript" src="'+$kamila_site+'/public/js/extjs/build/widgets/form/FileUploadField.js"></script><script>Ext.QuickTips.init();</script>'
|
|
435
|
+
return '<link rel="stylesheet" type="text/css" href="'+$kamila_site+'/public/css/resources/css/ext-all.css"><link rel="stylesheet" type="text/css" href="'+$kamila_site+'/public/css/resources/css/file-upload.css"><script type="text/javascript" src="'+$kamila_site+'/public/js/extjs/adapter/ext/ext-base.js"></script><script type="text/javascript" src="'+$kamila_site+'/public/js/extjs/ext-all.js"></script><script type="text/javascript" src="'+$kamila_site+'/public/js/extjs/build/widgets/form/FileUploadField.js"></script><script>Ext.QuickTips.init();Ext.BLANK_IMAGE_URL = "'+$kamila_site+'/public/css/resources/images/default/s.gif";</script>'
|
|
436
436
|
end
|
|
437
437
|
def create_javascript_rialto(theme)
|
|
438
438
|
return '<link rel="stylesheet" type="text/css" href="'+ $kamila_site + '/public/css/rialto/style/rialto.css"/>' +
|
|
@@ -1478,6 +1478,35 @@ class Application
|
|
|
1478
1478
|
</script>'
|
|
1479
1479
|
end
|
|
1480
1480
|
overload(:create_label_extjs,String,String,String,String,String,String,String)
|
|
1481
|
+
def input_hidden_extjs(id,name,value)
|
|
1482
|
+
return '<span id="k' + id.to_s + '"></span>
|
|
1483
|
+
<script>
|
|
1484
|
+
var '+name.to_s+' = new Ext.form.Hidden({
|
|
1485
|
+
name: "' + name.to_s + '",
|
|
1486
|
+
id: "' + id.to_s + '",
|
|
1487
|
+
value: "' + value.to_s + '"
|
|
1488
|
+
});
|
|
1489
|
+
'+name.to_s+'.render("k'+id.to_s+'");
|
|
1490
|
+
</script>'
|
|
1491
|
+
end
|
|
1492
|
+
# Operacion y Metodo realizado por Jose Valecillos: valecillosjg@gmail.com
|
|
1493
|
+
def input_datefield_MinMax_extjs(id,name,value,readonly,blankText,disabled,invalidText,minValue, maxValue)
|
|
1494
|
+
return '<span id="k' + id.to_s + '"></span>
|
|
1495
|
+
<script>
|
|
1496
|
+
var '+name.to_s+' = new Ext.form.DateField({
|
|
1497
|
+
name: "' + name.to_s + '",
|
|
1498
|
+
id: "' + id.to_s + '",
|
|
1499
|
+
value: "' + value.to_s + '",
|
|
1500
|
+
readOnly: ' + readonly.to_s + ',
|
|
1501
|
+
blankText: "' + blankText.to_s + '",
|
|
1502
|
+
disabled: '+disabled.to_s+',
|
|
1503
|
+
invalidText: "' + invalidText.to_s + '",
|
|
1504
|
+
minValue: "' + minValue.to_s + '",
|
|
1505
|
+
maxValue: "' + maxValue.to_s + '"
|
|
1506
|
+
});
|
|
1507
|
+
'+name.to_s+'.render("k'+id.to_s+'");
|
|
1508
|
+
</script>'
|
|
1509
|
+
end
|
|
1481
1510
|
def input_datefield_extjs(id,name,value,readonly,blankText,disabled,invalidText)
|
|
1482
1511
|
return '<span id="k' + id.to_s + '"></span>
|
|
1483
1512
|
<script>
|
|
@@ -1613,7 +1642,7 @@ class Application
|
|
|
1613
1642
|
'+name.to_s+'.render("k'+id.to_s+'");
|
|
1614
1643
|
</script>'
|
|
1615
1644
|
end
|
|
1616
|
-
|
|
1645
|
+
def input_numberField_extjs(id,name,inputType,width,allowBlank,value,disabled,cls)
|
|
1617
1646
|
if inputType.upcase=='INTEGER'
|
|
1618
1647
|
return '<div id="k'+id.to_s+'"></div>
|
|
1619
1648
|
<script>
|
|
@@ -1799,6 +1828,109 @@ class Application
|
|
|
1799
1828
|
'+name.to_s+'.render("k'+id.to_s+'");
|
|
1800
1829
|
</script>'
|
|
1801
1830
|
end
|
|
1831
|
+
def input_comboBoxFilter_extjs(id,name,width,storename,storedata,emptyText,disabled,cls,servername,displayField)
|
|
1832
|
+
campos = storename.split(',')
|
|
1833
|
+
thestorefields = '["'+campos[0].to_s+'","'+campos[1].to_s+'"]'
|
|
1834
|
+
theserver = ''
|
|
1835
|
+
if servername.to_s=='' and displayField.to_s==''
|
|
1836
|
+
thevalueField = campos[0].to_s
|
|
1837
|
+
thedisplayField = campos[1].to_s
|
|
1838
|
+
else
|
|
1839
|
+
thevalueField = campos[1].to_s
|
|
1840
|
+
thedisplayField = campos[1].to_s
|
|
1841
|
+
theserver = 'Ext.get("k'+id.to_s+'").on("click", function(){
|
|
1842
|
+
'+name.to_s+'.store.clearFilter();
|
|
1843
|
+
'+name.to_s+'.store.filter("'+displayField.to_s+'",'+servername.to_s+'.getValue(),true);
|
|
1844
|
+
'+name.to_s+'.setValue('+name.to_s+'.store.getAt(0).data.'+id.to_s+'store);
|
|
1845
|
+
'+name.to_s+'.render("k'+id.to_s+'");
|
|
1846
|
+
} );'
|
|
1847
|
+
end
|
|
1848
|
+
thestoredata = ''
|
|
1849
|
+
registros = storedata.split('|')
|
|
1850
|
+
for j in 0..registros.length-1
|
|
1851
|
+
campos = registros[j].to_s.split(',')
|
|
1852
|
+
if j==registros.length-1
|
|
1853
|
+
thestoredata = thestoredata + '["'+campos[0].to_s+'","'+campos[1].to_s+'"]'
|
|
1854
|
+
else
|
|
1855
|
+
thestoredata = thestoredata + '["'+campos[0].to_s+'","'+campos[1].to_s+'"], '
|
|
1856
|
+
end
|
|
1857
|
+
end
|
|
1858
|
+
return '<div id="k'+id.to_s+'"></div>
|
|
1859
|
+
<script>
|
|
1860
|
+
var '+id.to_s+'store = new Ext.data.SimpleStore({
|
|
1861
|
+
fields: '+thestorefields.to_s+',
|
|
1862
|
+
data : [ '+thestoredata.to_s+' ]
|
|
1863
|
+
});
|
|
1864
|
+
var '+name.to_s+' = new Ext.form.ComboBox({
|
|
1865
|
+
id: "'+id.to_s+'",
|
|
1866
|
+
name: "'+name.to_s+'",
|
|
1867
|
+
store: '+id.to_s+'store,
|
|
1868
|
+
width: '+width.to_s+',
|
|
1869
|
+
valueField: "'+thevalueField.to_s+'",
|
|
1870
|
+
displayField: "'+thedisplayField.to_s+'",
|
|
1871
|
+
typeAhead: true,
|
|
1872
|
+
mode: "local",
|
|
1873
|
+
triggerAction: "all",
|
|
1874
|
+
disabled: '+disabled.to_s+',
|
|
1875
|
+
cls: "'+cls.to_s+'",
|
|
1876
|
+
selectOnFocus:true
|
|
1877
|
+
});
|
|
1878
|
+
'+theserver.to_s+'
|
|
1879
|
+
'+name.to_s+'.render("k'+id.to_s+'");
|
|
1880
|
+
'+name.to_s+'.setValue("'+emptyText.to_s+'");
|
|
1881
|
+
</script>'
|
|
1882
|
+
end
|
|
1883
|
+
def input_comboBoxFilterAjax_extjs(id,name,width,pageserver,emptyText,disabled,cls,servername)
|
|
1884
|
+
if emptyText.to_s != ''
|
|
1885
|
+
thevalue = 'value: "'+emptyText.to_s+'"'
|
|
1886
|
+
else
|
|
1887
|
+
thevalue = 'emptyText: "'+emptyText.to_s+'"'
|
|
1888
|
+
end
|
|
1889
|
+
return '<div id="k'+id.to_s+'"></div>
|
|
1890
|
+
<script>
|
|
1891
|
+
|
|
1892
|
+
Ext.Ajax.request({
|
|
1893
|
+
url : "'+$kamila_site+'/'+pageserver+'",
|
|
1894
|
+
method: "POST",
|
|
1895
|
+
waitMsg: "Cargando...",
|
|
1896
|
+
success: function ( resultado, request ) {
|
|
1897
|
+
var datos = resultado.responseText;
|
|
1898
|
+
var Registros = datos.split(",");
|
|
1899
|
+
if (Registros.length-1==0)
|
|
1900
|
+
{
|
|
1901
|
+
Ext.MessageBox.alert("Error", "Inesperado, posible error en la vista o modelo");
|
|
1902
|
+
return;
|
|
1903
|
+
}
|
|
1904
|
+
var j=0;
|
|
1905
|
+
while (j<Registros.length)
|
|
1906
|
+
{
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
});
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
var '+id.to_s+'Connection = new Ext.data.Connection();
|
|
1914
|
+
var '+id.to_s+'store = new Ext.data.SimpleStore({
|
|
1915
|
+
fields: [ "'+name.to_s+'" ],
|
|
1916
|
+
data : [ '+thestore.to_s+' ]
|
|
1917
|
+
});
|
|
1918
|
+
var '+name.to_s+' = new Ext.form.ComboBox({
|
|
1919
|
+
id: "'+id.to_s+'",
|
|
1920
|
+
name: "'+name.to_s+'",
|
|
1921
|
+
store: '+id.to_s+'store,
|
|
1922
|
+
width: '+width.to_s+',
|
|
1923
|
+
displayField: "'+name.to_s+'",
|
|
1924
|
+
typeAhead: true,
|
|
1925
|
+
mode: "local",
|
|
1926
|
+
triggerAction: "all",
|
|
1927
|
+
'+thevalue.to_s+',
|
|
1928
|
+
disabled: '+disabled.to_s+',
|
|
1929
|
+
cls: "'+cls.to_s+'"
|
|
1930
|
+
});
|
|
1931
|
+
'+name.to_s+'.render("k'+id.to_s+'");
|
|
1932
|
+
</script>'
|
|
1933
|
+
end
|
|
1802
1934
|
=begin
|
|
1803
1935
|
# NO FUNCIONA, acceder las propiedades al arreglo items, para cambiarlas
|
|
1804
1936
|
# /*if (cg.getXType()=="checkboxgroup")
|
|
@@ -1889,6 +2021,12 @@ class Application
|
|
|
1889
2021
|
</script>'
|
|
1890
2022
|
end
|
|
1891
2023
|
def show_Message_extjs(icon,title,message)
|
|
2024
|
+
message = message.to_s.gsub(/</,"")
|
|
2025
|
+
message = message.gsub(/>/,"")
|
|
2026
|
+
message = message.gsub(/"/,"")
|
|
2027
|
+
message = message.gsub(/'/,"")
|
|
2028
|
+
message = message.gsub(/"/,"")
|
|
2029
|
+
message = message.gsub(/`/,"")
|
|
1892
2030
|
if icon.to_s=="ERROR"
|
|
1893
2031
|
$kamila_icon_mensaje = 'Ext.MessageBox.ERROR'
|
|
1894
2032
|
end
|
|
@@ -1910,6 +2048,11 @@ class Application
|
|
|
1910
2048
|
end
|
|
1911
2049
|
overload(:show_Message_extjs,String,String,String)
|
|
1912
2050
|
def show_Message_extjs(icon,title,message,linkto)
|
|
2051
|
+
message = message.to_s.gsub(/</,"")
|
|
2052
|
+
message = message.gsub(/>/,"")
|
|
2053
|
+
message = message.gsub(/"/,"")
|
|
2054
|
+
message = message.gsub(/'/,"")
|
|
2055
|
+
message = message.gsub(/`/,"")
|
|
1913
2056
|
if icon.to_s=="ERROR"
|
|
1914
2057
|
$kamila_icon_mensaje = 'Ext.MessageBox.ERROR'
|
|
1915
2058
|
end
|
|
@@ -2447,6 +2590,187 @@ class Application
|
|
|
2447
2590
|
</script>'
|
|
2448
2591
|
end
|
|
2449
2592
|
overload(:create_gridAjaxView_extjs,String,String,String,String,String,String,String,String,String)
|
|
2593
|
+
# Grid Dinamico con Altura, Amplitud y Pase de parametros
|
|
2594
|
+
def create_gridAjaxView_extjs(nameFunction,width,height,title,idCatalogo,ds,cm,widthcm,pageserver,params)
|
|
2595
|
+
theParams = ''
|
|
2596
|
+
campos = Array.new
|
|
2597
|
+
campos = params.split(',')
|
|
2598
|
+
for i in 0..campos.length-1
|
|
2599
|
+
if i==campos.length-1
|
|
2600
|
+
theParams = theParams.to_s + campos[i].to_s+' : '+campos[i].to_s+'.getValue() '
|
|
2601
|
+
else
|
|
2602
|
+
theParams = theParams.to_s + campos[i].to_s+' : '+campos[i].to_s+'.getValue(), '
|
|
2603
|
+
end
|
|
2604
|
+
end
|
|
2605
|
+
itemsDs = Array.new
|
|
2606
|
+
itemsDs = ds.split(',')
|
|
2607
|
+
itemsds = ''
|
|
2608
|
+
for i in 0..itemsDs.length-1
|
|
2609
|
+
if i==itemsDs.length-1
|
|
2610
|
+
itemsds = itemsds + '{name: "' + itemsDs[i].to_s + '"}'
|
|
2611
|
+
else
|
|
2612
|
+
itemsds = itemsds + '{name: "' + itemsDs[i].to_s + '"},'
|
|
2613
|
+
end
|
|
2614
|
+
end
|
|
2615
|
+
itemsCm = Array.new
|
|
2616
|
+
itemsWidthcm = Array.new
|
|
2617
|
+
itemsCm = cm.split(',')
|
|
2618
|
+
itemswidthcm = widthcm.split(',')
|
|
2619
|
+
itemscm = ''
|
|
2620
|
+
for i in 0..itemsCm.length-1
|
|
2621
|
+
if i==itemsCm.length-1
|
|
2622
|
+
itemscm = itemscm + '{header: "'+itemsCm[i].to_s + '", width: '+itemswidthcm[i].to_s+', sortable: true, dataIndex: "'+itemsDs[i].to_s+'"}'
|
|
2623
|
+
else
|
|
2624
|
+
itemscm = itemscm + '{header: "'+itemsCm[i].to_s + '", width: '+itemswidthcm[i].to_s+', sortable: true, dataIndex: "'+itemsDs[i].to_s+'"},'
|
|
2625
|
+
end
|
|
2626
|
+
end
|
|
2627
|
+
if ds!=''
|
|
2628
|
+
itemsIds = Array.new
|
|
2629
|
+
itemsIds = ds.split(',')
|
|
2630
|
+
itemsids = ''
|
|
2631
|
+
for i in 0..itemsIds.length-1
|
|
2632
|
+
itemsids = itemsids + 'if (typeof('+itemsIds[i].to_s+'0)!="undefined") { '
|
|
2633
|
+
itemsids = itemsids + 'if ('+itemsIds[i].to_s+'0.getXType()=="radio") { '
|
|
2634
|
+
itemsids = itemsids + itemsIds[i].to_s+'0.setValue('+idCatalogo+'grid.getSelectionModel().getSelected().get("'+itemsDs[i].to_s+'"));'
|
|
2635
|
+
itemsids = itemsids + ' } }'
|
|
2636
|
+
itemsids = itemsids + 'if (typeof('+itemsIds[i].to_s+')!="undefined") { '
|
|
2637
|
+
itemsids = itemsids + itemsIds[i].to_s+'.setValue('+idCatalogo+'grid.getSelectionModel().getSelected().get("'+itemsDs[i].to_s+'"));'
|
|
2638
|
+
itemsids = itemsids + ' } '
|
|
2639
|
+
end
|
|
2640
|
+
botonAceptar = '{
|
|
2641
|
+
text:"Aceptar",
|
|
2642
|
+
handler: function()
|
|
2643
|
+
{
|
|
2644
|
+
'+itemsids+'
|
|
2645
|
+
'+idCatalogo+'onoff_clave = true;
|
|
2646
|
+
'+idCatalogo+'win.hide();
|
|
2647
|
+
}
|
|
2648
|
+
},'
|
|
2649
|
+
else
|
|
2650
|
+
botonAceptar = ''
|
|
2651
|
+
end
|
|
2652
|
+
return '<div id="'+idCatalogo+'"></div><div id="'+idCatalogo+'Grid"></div>
|
|
2653
|
+
<script>
|
|
2654
|
+
var '+idCatalogo+'gridOnOff = false;
|
|
2655
|
+
var '+idCatalogo+'winOnOff = false;
|
|
2656
|
+
var '+idCatalogo+'grid = null;
|
|
2657
|
+
var '+idCatalogo+'win = null;
|
|
2658
|
+
function '+nameFunction.to_s+'()
|
|
2659
|
+
{
|
|
2660
|
+
Ext.Ajax.request({
|
|
2661
|
+
url : "'+$kamila_site+'/'+pageserver+'",
|
|
2662
|
+
params : { '+theParams+' },
|
|
2663
|
+
method: "POST",
|
|
2664
|
+
waitMsg: "Cargando...",
|
|
2665
|
+
success: function ( resultado, request ) {
|
|
2666
|
+
var datos = resultado.responseText;
|
|
2667
|
+
var Registros = datos.split("|");
|
|
2668
|
+
if (Registros.length-1==0)
|
|
2669
|
+
{
|
|
2670
|
+
Ext.MessageBox.alert("Error", "Inesperado, posible error en la vista o modelo");
|
|
2671
|
+
return;
|
|
2672
|
+
}
|
|
2673
|
+
var Datos2 = new Array();
|
|
2674
|
+
var j=0;
|
|
2675
|
+
var k=0;
|
|
2676
|
+
while (j<Registros.length)
|
|
2677
|
+
{
|
|
2678
|
+
var Campos = Registros[j].split(",");
|
|
2679
|
+
var otroCampos = null;
|
|
2680
|
+
var jj = 0;
|
|
2681
|
+
var exitSalida = false;
|
|
2682
|
+
while (jj<Campos.length && exitSalida==false)
|
|
2683
|
+
{
|
|
2684
|
+
if (Campos[jj].indexOf("$")!=-1)
|
|
2685
|
+
{
|
|
2686
|
+
otrosCampos = Campos[jj].split("$");
|
|
2687
|
+
otrosCampos = otrosCampos[1].split(";")
|
|
2688
|
+
kk=0;
|
|
2689
|
+
m=jj;
|
|
2690
|
+
while (kk<otrosCampos.length)
|
|
2691
|
+
{
|
|
2692
|
+
Campos[m] = otrosCampos[kk];
|
|
2693
|
+
kk++;
|
|
2694
|
+
m++;
|
|
2695
|
+
}
|
|
2696
|
+
exitSalida = true;
|
|
2697
|
+
}
|
|
2698
|
+
jj++;
|
|
2699
|
+
}
|
|
2700
|
+
var Datos1 = new Array();
|
|
2701
|
+
for (i=0;i<Campos.length; i++)
|
|
2702
|
+
{
|
|
2703
|
+
Datos1[i] = Campos[i];
|
|
2704
|
+
}
|
|
2705
|
+
if (j>0)
|
|
2706
|
+
{
|
|
2707
|
+
Datos2[k] = Datos1;
|
|
2708
|
+
k++
|
|
2709
|
+
}
|
|
2710
|
+
j++;
|
|
2711
|
+
}
|
|
2712
|
+
Ext.grid.Datos = Datos2;
|
|
2713
|
+
if (!'+idCatalogo+'gridOnOff)
|
|
2714
|
+
{
|
|
2715
|
+
'+idCatalogo+'grid = new Ext.grid.GridPanel({
|
|
2716
|
+
border:false,
|
|
2717
|
+
ds: new Ext.data.Store({
|
|
2718
|
+
reader: new Ext.data.ArrayReader({}, [ '+itemsds+' ]),
|
|
2719
|
+
data: Ext.grid.Datos
|
|
2720
|
+
}),
|
|
2721
|
+
cm: new Ext.grid.ColumnModel([
|
|
2722
|
+
new Ext.grid.RowNumberer(), '+itemscm+' ]),
|
|
2723
|
+
|
|
2724
|
+
viewConfig: {
|
|
2725
|
+
forceFit:true
|
|
2726
|
+
}
|
|
2727
|
+
});
|
|
2728
|
+
'+idCatalogo+'gridOnOff = true;
|
|
2729
|
+
}
|
|
2730
|
+
else
|
|
2731
|
+
{
|
|
2732
|
+
var storeDatos = new Ext.data.Store({
|
|
2733
|
+
reader: new Ext.data.ArrayReader({}, [ '+itemsds+' ]),
|
|
2734
|
+
data: Ext.grid.Datos
|
|
2735
|
+
});
|
|
2736
|
+
'+idCatalogo+'grid.reconfigure(storeDatos,'+idCatalogo+'grid.getColumnModel());
|
|
2737
|
+
}
|
|
2738
|
+
if(!'+idCatalogo+'winOnOff)
|
|
2739
|
+
{
|
|
2740
|
+
'+idCatalogo+'win = new Ext.Window(
|
|
2741
|
+
{
|
|
2742
|
+
el:"'+idCatalogo+'",
|
|
2743
|
+
layout:"fit",
|
|
2744
|
+
title: "'+title.to_s+'",
|
|
2745
|
+
width: '+width.to_s+',
|
|
2746
|
+
height: '+height.to_s+',
|
|
2747
|
+
modal: true,
|
|
2748
|
+
closeAction:"hide",
|
|
2749
|
+
plain: true,
|
|
2750
|
+
items: '+idCatalogo+'grid,
|
|
2751
|
+
buttons: ['+botonAceptar+'
|
|
2752
|
+
{
|
|
2753
|
+
text: "Salir",
|
|
2754
|
+
handler: function()
|
|
2755
|
+
{
|
|
2756
|
+
'+idCatalogo+'win.hide();
|
|
2757
|
+
}
|
|
2758
|
+
}]
|
|
2759
|
+
});
|
|
2760
|
+
'+idCatalogo+'winOnOff = true;
|
|
2761
|
+
}
|
|
2762
|
+
'+idCatalogo+'win.show(this);
|
|
2763
|
+
'+idCatalogo+'grid.render("'+idCatalogo.to_s+'Grid");
|
|
2764
|
+
'+idCatalogo+'grid.getSelectionModel().selectFirstRow();
|
|
2765
|
+
},
|
|
2766
|
+
failure: function ( resultado, request) {
|
|
2767
|
+
Ext.MessageBox.alert("Error", resultado.responseText);
|
|
2768
|
+
}
|
|
2769
|
+
});
|
|
2770
|
+
}
|
|
2771
|
+
</script>'
|
|
2772
|
+
end
|
|
2773
|
+
overload(:create_gridAjaxView_extjs,String,String,String,String,String,String,String,String,String,String)
|
|
2450
2774
|
def create_AjaxFind_extjs(nameFunction,action,params,ids,pageserver)
|
|
2451
2775
|
theAction = Array.new
|
|
2452
2776
|
theAction = action.split(",")
|
|
@@ -3057,6 +3381,63 @@ class Application
|
|
|
3057
3381
|
'+theitems+'
|
|
3058
3382
|
</script>'
|
|
3059
3383
|
end
|
|
3384
|
+
def input_comboFilterAjax_rialto(name,top,left,width,items,selWithText,parent,enable,heightItem,pageserver,namesparams,nameCombo)
|
|
3385
|
+
parametros = namesparams.split(',')
|
|
3386
|
+
theparameters = '"'
|
|
3387
|
+
for i in 0..parametros.length-1
|
|
3388
|
+
if i==parametros.length-1
|
|
3389
|
+
theparameters = theparameters + parametros[i].to_s + '="+'+parametros[i].to_s+'.getValue()'
|
|
3390
|
+
else
|
|
3391
|
+
theparameters = theparameters + parametros[i].to_s + '="+'+parametros[i].to_s+'.getValue()+"&'
|
|
3392
|
+
end
|
|
3393
|
+
end
|
|
3394
|
+
itemsvalue = Array.new
|
|
3395
|
+
itemsvalue = items.split(",")
|
|
3396
|
+
theitems = ''
|
|
3397
|
+
for i in 0..itemsvalue.length-1
|
|
3398
|
+
theitems = theitems + name + '.addItem("'+itemsvalue[i].to_s+'","'+itemsvalue[i].to_s+'"); '
|
|
3399
|
+
end
|
|
3400
|
+
if selWithText == ''
|
|
3401
|
+
theitems = theitems + name + '.selFirst();'
|
|
3402
|
+
else
|
|
3403
|
+
theitems = theitems + name + '.selWithText("'+selWithText+'"); '
|
|
3404
|
+
end
|
|
3405
|
+
theitems = theitems + name + '.onclick = function()
|
|
3406
|
+
{ '+ name + '.getSelText();
|
|
3407
|
+
//Ajax para los datos
|
|
3408
|
+
'+name+'Requerimiento();
|
|
3409
|
+
}'
|
|
3410
|
+
return '<div id="'+parent+'"></div>
|
|
3411
|
+
<script>
|
|
3412
|
+
function '+name+'Repuesta(response)
|
|
3413
|
+
{
|
|
3414
|
+
var j=0;
|
|
3415
|
+
datos = response.responseText;
|
|
3416
|
+
Registros = datos.split(",");
|
|
3417
|
+
'+nameCombo+'.clearData();
|
|
3418
|
+
while (j<Registros.length)
|
|
3419
|
+
{
|
|
3420
|
+
'+nameCombo+'.addItem(Registros[j],Registros[j]);
|
|
3421
|
+
j++;
|
|
3422
|
+
}
|
|
3423
|
+
'+nameCombo+'.selFirst();
|
|
3424
|
+
}
|
|
3425
|
+
function '+name+'Requerimiento()
|
|
3426
|
+
{
|
|
3427
|
+
var '+name+'ajaxReq = new rialto.io.AjaxRequest({
|
|
3428
|
+
url:"'+$kamila_site+'/'+pageserver+'",
|
|
3429
|
+
method: "post",
|
|
3430
|
+
withWaitWindow:true,
|
|
3431
|
+
callBackObjectOnSuccess:this,
|
|
3432
|
+
onSuccess: '+name+'Repuesta,
|
|
3433
|
+
onFailure: function(){ alert("Error Ajax conexion"); }
|
|
3434
|
+
});
|
|
3435
|
+
'+name+'ajaxReq.load('+theparameters.to_s+');
|
|
3436
|
+
}
|
|
3437
|
+
var '+name+' = new rialto.widget.Combo("","'+name+'",'+top+','+left+','+width+','+parent+',{suggest:true,enable:'+enable+',heightItem:'+heightItem+'});
|
|
3438
|
+
'+theitems+'
|
|
3439
|
+
</script>'
|
|
3440
|
+
end
|
|
3060
3441
|
def create_gridView_rialto(top,left,width,height,nameFunction,title,nameCatalogo,nameFields,cn,widthc,typec,data)
|
|
3061
3442
|
# Estaba despues de cargar el grid: '+nameCatalogo+'oGrid.deleteOneLine(0);
|
|
3062
3443
|
itemsc = Array.new()
|
|
@@ -3105,7 +3486,7 @@ class Application
|
|
|
3105
3486
|
'+nameCatalogo+'oGrid.fillGrid(Datos2);
|
|
3106
3487
|
'+nameCatalogo+'oGrid.clickLine(0,0);
|
|
3107
3488
|
var aceptar = new rialto.widget.Button(parseInt(screen.height * 0.40),parseInt(screen.width * 0.15),
|
|
3108
|
-
"Aceptar","Seleccionar
|
|
3489
|
+
"Aceptar","Seleccionar un registro",'+nameCatalogo+'sPopup,{adaptToText:true,widthMin:70});
|
|
3109
3490
|
aceptar.onclick= function() { '+ciclo+nameCatalogo+'sPopup.closeWindow(); }
|
|
3110
3491
|
var salir = new rialto.widget.Button(parseInt(screen.height * 0.40),parseInt(screen.width * 0.25),
|
|
3111
3492
|
"Salir","Salir",'+nameCatalogo+'sPopup,{adaptToText:true,widthMin:70});
|
|
@@ -3173,7 +3554,7 @@ class Application
|
|
|
3173
3554
|
'+nameCatalogo+'oGrid.fillGrid(Datos2);
|
|
3174
3555
|
'+nameCatalogo+'oGrid.clickLine(0,0);
|
|
3175
3556
|
var aceptar = new rialto.widget.Button(parseInt(screen.height * 0.40),parseInt(screen.width * 0.15),
|
|
3176
|
-
"Aceptar","Seleccionar
|
|
3557
|
+
"Aceptar","Seleccionar un registro",'+nameCatalogo+'sPopup,{adaptToText:true,widthMin:70});
|
|
3177
3558
|
aceptar.onclick= function() { '+ciclo+nameCatalogo+'sPopup.closeWindow(); }
|
|
3178
3559
|
var salir = new rialto.widget.Button(parseInt(screen.height * 0.40),parseInt(screen.width * 0.25),
|
|
3179
3560
|
"Salir","Salir",'+nameCatalogo+'sPopup,{adaptToText:true,widthMin:70});
|
|
@@ -3202,6 +3583,96 @@ class Application
|
|
|
3202
3583
|
}
|
|
3203
3584
|
</script>'
|
|
3204
3585
|
end
|
|
3586
|
+
overload(:create_gridAjaxView_rialto,String,String,String,String,String,String,String,String,String,String,String)
|
|
3587
|
+
#
|
|
3588
|
+
def create_gridAjaxView_rialto(top,left,width,height,nameFunction,title,nameCatalogo,nameFields,cn,widthc,typec,pageserver,namesparams)
|
|
3589
|
+
# Estaba despues de cargar el grid: '+nameCatalogo+'oGrid.deleteOneLine(0);
|
|
3590
|
+
parametros = namesparams.split(',')
|
|
3591
|
+
theparameters = '"'
|
|
3592
|
+
for i in 0..parametros.length-1
|
|
3593
|
+
if i==parametros.length-1
|
|
3594
|
+
theparameters = theparameters + parametros[i].to_s + '="+'+parametros[i].to_s+'.getValue()'
|
|
3595
|
+
else
|
|
3596
|
+
theparameters = theparameters + parametros[i].to_s + '="+'+parametros[i].to_s+'.getValue()+"&'
|
|
3597
|
+
end
|
|
3598
|
+
end
|
|
3599
|
+
itemsc = Array.new()
|
|
3600
|
+
itemsw = Array.new()
|
|
3601
|
+
itemst = Array.new()
|
|
3602
|
+
itemsf = Array.new()
|
|
3603
|
+
itemsc = cn.split(",")
|
|
3604
|
+
itemsw = widthc.split(",")
|
|
3605
|
+
itemst = typec.split(",")
|
|
3606
|
+
itemsf = nameFields.split(",")
|
|
3607
|
+
itemsHeader = " "
|
|
3608
|
+
ciclo = " "
|
|
3609
|
+
for i in 0..itemsc.length-1
|
|
3610
|
+
if i==itemsc.length-1
|
|
3611
|
+
itemsHeader = itemsHeader + '{title:"'+itemsc[i]+'",width:'+itemsw[i]+',type:"'+itemst[i]+'"} '
|
|
3612
|
+
else
|
|
3613
|
+
itemsHeader = itemsHeader + '{title:"'+itemsc[i]+'",width:'+itemsw[i]+',type:"'+itemst[i]+'"},'
|
|
3614
|
+
end
|
|
3615
|
+
ciclo = ciclo+itemsf[i].to_s+'.setValue('+nameCatalogo+'oGrid.getCellData('+nameCatalogo+'oGrid.getIndLineClic(),'+i.to_s+'));'
|
|
3616
|
+
end
|
|
3617
|
+
return '<script>
|
|
3618
|
+
var '+nameCatalogo+'sPopup = null;
|
|
3619
|
+
var '+nameCatalogo+'oGrid = null;
|
|
3620
|
+
function '+nameCatalogo+'Repuesta(response)
|
|
3621
|
+
{
|
|
3622
|
+
var Datos2 = new Array();
|
|
3623
|
+
var j=0;
|
|
3624
|
+
var k=0;
|
|
3625
|
+
datos = response.responseText;
|
|
3626
|
+
Registros = datos.split("|");
|
|
3627
|
+
while (j<Registros.length)
|
|
3628
|
+
{
|
|
3629
|
+
var Campos = Registros[j].split(",");
|
|
3630
|
+
var Datos1 = new Array();
|
|
3631
|
+
for (i=0;i<Campos.length; i++)
|
|
3632
|
+
{
|
|
3633
|
+
Datos1[i] = Campos[i];
|
|
3634
|
+
}
|
|
3635
|
+
if (j>0)
|
|
3636
|
+
{
|
|
3637
|
+
Datos2[k] = Datos1;
|
|
3638
|
+
k++
|
|
3639
|
+
}
|
|
3640
|
+
j++;
|
|
3641
|
+
}
|
|
3642
|
+
'+nameCatalogo+'oGrid.fillGrid(Datos2);
|
|
3643
|
+
'+nameCatalogo+'oGrid.clickLine(0,0);
|
|
3644
|
+
var aceptar = new rialto.widget.Button(parseInt(screen.height * 0.40),parseInt(screen.width * 0.15),
|
|
3645
|
+
"Aceptar","Seleccionar un registro",'+nameCatalogo+'sPopup,{adaptToText:true,widthMin:70});
|
|
3646
|
+
aceptar.onclick= function() { '+ciclo+nameCatalogo+'sPopup.closeWindow(); }
|
|
3647
|
+
var salir = new rialto.widget.Button(parseInt(screen.height * 0.40),parseInt(screen.width * 0.25),
|
|
3648
|
+
"Salir","Salir",'+nameCatalogo+'sPopup,{adaptToText:true,widthMin:70});
|
|
3649
|
+
salir.onclick= function() { '+nameCatalogo+'sPopup.closeWindow(); }
|
|
3650
|
+
}
|
|
3651
|
+
function '+nameFunction+'()
|
|
3652
|
+
{
|
|
3653
|
+
'+nameCatalogo+'sPopup = new rialto.widget.PopUp("'+nameCatalogo+'",'+top+','+left+',"'+width+'","'+height+'","'+title+'","","gray");
|
|
3654
|
+
'+nameCatalogo+'oGrid = new rialto.widget.Grid({top:30,left:5,height:220,witdh:200,
|
|
3655
|
+
arrHeader:[ '+itemsHeader+' ],
|
|
3656
|
+
name:"'+nameCatalogo+'oTable",parent:'+nameCatalogo+'sPopup,row:10,
|
|
3657
|
+
cellActive:false,sortable:true,multiSelect:false,
|
|
3658
|
+
lineHeight:26,boolPrint:true,switchable:true,
|
|
3659
|
+
clickable:true,autoResizableW:true,autoResizableH:false,
|
|
3660
|
+
writable:false});
|
|
3661
|
+
//Ajax para los datos
|
|
3662
|
+
var '+nameCatalogo+'ajaxReq=new rialto.io.AjaxRequest({
|
|
3663
|
+
url:"'+$kamila_site+'/'+pageserver+'",
|
|
3664
|
+
method: "post",
|
|
3665
|
+
withWaitWindow:true,
|
|
3666
|
+
callBackObjectOnSuccess:this,
|
|
3667
|
+
onSuccess: '+nameCatalogo+'Repuesta,
|
|
3668
|
+
onFailure: function(){ alert("Error Ajax conexion"); }
|
|
3669
|
+
});
|
|
3670
|
+
|
|
3671
|
+
'+nameCatalogo+'ajaxReq.load('+theparameters.to_s+');
|
|
3672
|
+
}
|
|
3673
|
+
</script>'
|
|
3674
|
+
end
|
|
3675
|
+
overload(:create_gridAjaxView_rialto,String,String,String,String,String,String,String,String,String,String,String,String)
|
|
3205
3676
|
# Formato a un numero
|
|
3206
3677
|
def format_number(number, separator)
|
|
3207
3678
|
return number.to_s.gsub(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1"+separator)
|
data/lib/cerrar.sh
CHANGED
|
File without changes
|
data/lib/cf_yiyi.rb
CHANGED
|
@@ -14,7 +14,7 @@ class CfYiyi
|
|
|
14
14
|
end
|
|
15
15
|
def control()
|
|
16
16
|
valor = false
|
|
17
|
-
fechatope = "
|
|
17
|
+
fechatope = "20101231"
|
|
18
18
|
fechaactual = Time.now().strftime("%Y%m%d")
|
|
19
19
|
if fechatope<fechaactual
|
|
20
20
|
puts "No puede usar este componente\nLlamar al Prof. Edgar Gonzalez\nAl telefono: +58 02512591601"
|
data/lib/escape_shell_cmd.rb
CHANGED
|
File without changes
|
data/lib/kamila.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ******************** kamila version 1.0.
|
|
1
|
+
# ******************** kamila version 1.0.2 - Framework *********************
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2008 Edgar Gonzalez (egonzale.wordpress.com)
|
|
4
4
|
#
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
Email : edgargonzalezmunoz@gmail.com
|
|
37
37
|
Blog : egonzale.wordpress.com
|
|
38
38
|
Website : www.myjavaserver.com/~egonzale
|
|
39
|
-
Framework : kamila versión 1.0.
|
|
39
|
+
Framework : kamila versión 1.0.2
|
|
40
40
|
Fecha : 18 de Julio del 2008
|
|
41
41
|
=end
|
|
42
42
|
|
|
@@ -124,7 +124,7 @@ class Kamila
|
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
# Definir Path de la libreria de Kamila para Ubuntu y Familia
|
|
127
|
-
# $kamila_lib = "/usr/lib/ruby/gems/1.8/gems/kamila-1.0.
|
|
127
|
+
# $kamila_lib = "/usr/lib/ruby/gems/1.8/gems/kamila-1.0.2/lib/"
|
|
128
128
|
if $kamila_scan==nil or $kamila_scan==''
|
|
129
129
|
require 'rubygems'
|
|
130
130
|
require "scanear_disco"
|
|
@@ -144,7 +144,7 @@ class Kamila
|
|
|
144
144
|
comando = 'cat /proc/version'
|
|
145
145
|
so = bash.execute comando
|
|
146
146
|
if so.to_s.index('Debian')!=nil
|
|
147
|
-
$kamila_lib = "/var/lib/gems/1.8/gems/kamila-1.0.
|
|
147
|
+
$kamila_lib = "/var/lib/gems/1.8/gems/kamila-1.0.2/lib/"
|
|
148
148
|
end
|
|
149
149
|
# Faltaria otras distribuciones de Linux
|
|
150
150
|
end
|
|
@@ -371,9 +371,9 @@ class Kamila
|
|
|
371
371
|
$kamila_icon_mensaje = "Ext.MessageBox.ERROR"
|
|
372
372
|
$kamila_titulo = "Error"
|
|
373
373
|
#$kamila_mensaje = "Método " + $kamila_action +" no existe para el controlador " + $kamila_controller
|
|
374
|
-
#$kamila_mensaje = "#{ e } (#{ e.class })!"
|
|
375
374
|
if $kamila_defaultMessagesType.upcase=="RUBY"
|
|
376
375
|
$kamila_mensaje = $!.to_s
|
|
376
|
+
#$kamila_mensaje = "#{ e } (#{ e.class })! "+e.backtrace
|
|
377
377
|
if $kamila_mensaje != ""
|
|
378
378
|
$kamila_mensaje = $kamila_mensaje.gsub(/</,"")
|
|
379
379
|
$kamila_mensaje = $kamila_mensaje.gsub(/>/,"")
|
data/lib/mycgi.rb
CHANGED
|
File without changes
|
data/lib/mypdf.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ******************** kamila version 1.0.
|
|
1
|
+
# ******************** kamila version 1.0.2 - Framework *********************
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2008 Edgar Gonzalez (egonzale.wordpress.com)
|
|
4
4
|
#
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
Email : edgargonzalezmunoz@gmail.com
|
|
38
38
|
Blog : egonzale.wordpress.com
|
|
39
39
|
Website : www.myjavaserver.com/~egonzale
|
|
40
|
-
Framework : kamila versión 1.0.
|
|
40
|
+
Framework : kamila versión 1.0.2
|
|
41
41
|
Fecha : 18 de Julio del 2008
|
|
42
42
|
|
|
43
43
|
This is based directly on the fifth tutorial example given on the
|
data/lib/overload.rb
CHANGED
data/lib/scanear_disco.rb
CHANGED
|
File without changes
|
data/lib/smtp_tls.rb
CHANGED
|
File without changes
|
data/lib/utilidades.rb
CHANGED
|
File without changes
|
data/test/testEscapeShellCmd.rb
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -1,33 +1,26 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
|
-
rubygems_version: 0.9.4
|
|
3
|
-
specification_version: 1
|
|
4
2
|
name: kamila
|
|
5
3
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 1.0.
|
|
7
|
-
date: 2009-02-10 00:00:00 -04:30
|
|
8
|
-
summary: Libreria Basica para el Framework kamila
|
|
9
|
-
require_paths:
|
|
10
|
-
- lib
|
|
11
|
-
email: edgargonzalezmunoz@gmail.com
|
|
12
|
-
homepage: http://rubotz.rubyforge.org
|
|
13
|
-
rubyforge_project: rubotz
|
|
14
|
-
description:
|
|
15
|
-
autorequire:
|
|
16
|
-
default_executable:
|
|
17
|
-
bindir: bin
|
|
18
|
-
has_rdoc: true
|
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
20
|
-
requirements:
|
|
21
|
-
- - ">"
|
|
22
|
-
- !ruby/object:Gem::Version
|
|
23
|
-
version: 0.0.0
|
|
24
|
-
version:
|
|
4
|
+
version: 1.0.2
|
|
25
5
|
platform: ruby
|
|
26
|
-
signing_key:
|
|
27
|
-
cert_chain:
|
|
28
|
-
post_install_message:
|
|
29
6
|
authors:
|
|
30
7
|
- Edgar Gonzalez
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2009-06-19 00:00:00 -04:30
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies: []
|
|
15
|
+
|
|
16
|
+
description:
|
|
17
|
+
email: edgargonzalezmunoz@gmail.com
|
|
18
|
+
executables: []
|
|
19
|
+
|
|
20
|
+
extensions: []
|
|
21
|
+
|
|
22
|
+
extra_rdoc_files: []
|
|
23
|
+
|
|
31
24
|
files:
|
|
32
25
|
- doc/classes
|
|
33
26
|
- doc/classes/Method.src
|
|
@@ -117,17 +110,31 @@ files:
|
|
|
117
110
|
- lib/overload.rb
|
|
118
111
|
- lib/utilidades.rb
|
|
119
112
|
- lib/cerrar.sh
|
|
120
|
-
|
|
121
|
-
|
|
113
|
+
has_rdoc: true
|
|
114
|
+
homepage: http://rubotz.rubyforge.org
|
|
115
|
+
post_install_message:
|
|
122
116
|
rdoc_options: []
|
|
123
117
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
118
|
+
require_paths:
|
|
119
|
+
- lib
|
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: "0"
|
|
125
|
+
version:
|
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
- - ">="
|
|
129
|
+
- !ruby/object:Gem::Version
|
|
130
|
+
version: "0"
|
|
131
|
+
version:
|
|
130
132
|
requirements: []
|
|
131
133
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
rubyforge_project: rubotz
|
|
135
|
+
rubygems_version: 1.3.1
|
|
136
|
+
signing_key:
|
|
137
|
+
specification_version: 2
|
|
138
|
+
summary: Libreria Basica para el Framework kamila
|
|
139
|
+
test_files:
|
|
140
|
+
- test/testEscapeShellCmd.rb
|