lib/qooxview.rb in qooxview-1.9.10 vs lib/qooxview.rb in qooxview-1.9.11
- old
+ new
@@ -37,14 +37,14 @@
def initialize
show_info :welcome, "hello world"
show_button :welt, :world
end
def rpc_button_welt( session, args* )
-reply( 'update', { :welcome => "Hallo Welt" } )
+reply( :update, welcome: "Hallo Welt" )
end
def rpc_button_world( session, args* )
-reply( 'update', { :welcome => "Hello world" } )
+reply( :update, welcome: "Hello world" )
end
end
QooxView::startWeb
@@ -73,10 +73,18 @@
=== Loading of Entities and View s from directories
=== Configuration-file
-A simple YAML-configuration style is supported by default.
+There are two configuration-files:
+- $name.conf - which holds general configurations like data-directory
+ - bash-style configuration, as it is also used by scripts
+ - this file is searched upwards from the $name.rb, then in /etc, if not found.
+ Deafault values used when not found:
+ - DATA_DIR=/var/lib/$name
+- config.yaml - application-specific configuration that is not used by scripts
+ - this file is searched in the DATA_DIR
+ - if not present, will be copied into DATA_DIR
=end
require 'bundler/setup'
require 'qooxview/qooxview'
\ No newline at end of file