Top Level Namespace

Defined Under Namespace

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

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



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/cuca.rb', line 19

def init_save_require(filename)
 begin 
   require filename
 rescue  LoadError => 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_cli.rb', line 10

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