Top Level Namespace

Defined Under Namespace

Modules: Cuca Classes: ARFormWidget, ARViewWidget, BaseList, CGI, CGIEmu, DBListWidget, FormErrorsWidget, FormWidget, LinkWidget, QueryDef, SLinkWidget, StaticDataListWidget, TestFormWidget

Constant Summary collapse

BASE =
'/home/bones/src/cuca/app'
URL =
'user/martin/somewhere/notexist/'

Instance Method Summary collapse

Instance Method Details

#cuca_register_autoload(object, file) ⇒ Object



5
6
7
# File 'lib/cuca/app.rb', line 5

def cuca_register_autoload(object, file)
 autoload(object, file)
end

#init_save_require(filename) ⇒ Object

To require config and environment



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/cuca.rb', line 49

def init_save_require(filename)
 begin 
   require filename
 rescue  => e
   title = "INIT Error [#{filename}]: #{e}"
   $stderr.puts title
   err = ''
   e.backtrace.each do |b|
     err << "    #{b}\n"
   end
   $stderr.puts err
   c = CGI.new
   c.out { "<b>#{title}<br><br>#{err.gsub(/\n/,'<br>')}" }
 end
end

#url(some_path) ⇒ Object



10
11
12
# File 'lib/cuca_console.rb', line 10

def url(some_path)
  $app.load_support_files(Cuca::URLMap.new($cuca_path+'/app', some_path))
end