omf_web 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
data/lib/omf-web/version.rb
CHANGED
data/lib/omf_common/lobject.rb
CHANGED
@@ -59,8 +59,9 @@ module OMF::Common
|
|
59
59
|
#
|
60
60
|
def self.init_log(appName, opts = {})
|
61
61
|
|
62
|
-
|
62
|
+
#@@logger = ::Log4r::Logger.new(appName)
|
63
63
|
set_environment(opts[:environment] || 'development')
|
64
|
+
@@logger = ::Log4r::Logger.new(@@rootLoggerName)
|
64
65
|
|
65
66
|
configFile = opts[:configFile]
|
66
67
|
if (configFile == nil && logEnv = opts[:env])
|
@@ -82,10 +83,6 @@ module OMF::Common
|
|
82
83
|
end
|
83
84
|
#puts "config file '#{configFile}'"
|
84
85
|
if !(configFile || '').empty?
|
85
|
-
# if (appInstance == nil)
|
86
|
-
# appInstance = DateTime.now.strftime("%F-%T").split(':').join('-')
|
87
|
-
# end
|
88
|
-
# ::Log4r::Configurator['appInstance'] = opts[:appInstance] || 'default'
|
89
86
|
::Log4r::Configurator['appName'] = appName
|
90
87
|
begin
|
91
88
|
ycfg = YAML.load_file(configFile)
|
@@ -98,7 +95,12 @@ module OMF::Common
|
|
98
95
|
end
|
99
96
|
else
|
100
97
|
# set default behavior
|
101
|
-
|
98
|
+
::Log4r::Logger.global.level = ::Log4r::ALL
|
99
|
+
formatter = ::Log4r::PatternFormatter.new(:pattern => "%l %c: %m")
|
100
|
+
::Log4r::StdoutOutputter.new('console', :formatter => formatter)
|
101
|
+
@@logger.add 'console'
|
102
|
+
#@@logger.outputters = ::Log4r::StdoutOutputter.new('console') #Outputter.stdout
|
103
|
+
##@@logger.outputters = ::Log4r::Outputter.stdout
|
102
104
|
end
|
103
105
|
end
|
104
106
|
|
@@ -38,7 +38,8 @@ OML.data_source = function(opts) {
|
|
38
38
|
var name = opts.id || opts.name;
|
39
39
|
var event_name = "data_source." + name + ".changed";
|
40
40
|
var rows = opts.rows || [];
|
41
|
-
var offset = opts.offset || -1; // Number of (initial) rows skipped (count towards 'max_rows')
|
41
|
+
//var offset = opts.offset || -1; // Number of (initial) rows skipped (count towards 'max_rows')
|
42
|
+
var offset = opts.offset || 0; // Number of (initial) rows skipped (count towards 'max_rows')
|
42
43
|
var schema = opts.schema;
|
43
44
|
|
44
45
|
var data_source = {
|
@@ -103,7 +104,7 @@ OML.data_source = function(opts) {
|
|
103
104
|
function start_web_socket() {
|
104
105
|
if (ws) return; // already running
|
105
106
|
|
106
|
-
var url = 'ws://' + window.location.host + '/_ws?sid=' + opts.sid;
|
107
|
+
var url = 'ws://' + window.location.host + '/_ws?sid=' + (opts.sid || OML.session_id);
|
107
108
|
ws = new WebSocket(url);
|
108
109
|
ws.onopen = on_open;
|
109
110
|
ws.onmessage = on_message;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omf_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omf-oml
|
@@ -2347,3 +2347,4 @@ signing_key:
|
|
2347
2347
|
specification_version: 3
|
2348
2348
|
summary: OMF's web frontend.
|
2349
2349
|
test_files: []
|
2350
|
+
has_rdoc:
|