code/01rwdcore/03helptexthash.rb in rwddialogmap-0.01 vs code/01rwdcore/03helptexthash.rb in rwddialogmap-0.02

- old
+ new

@@ -1,23 +1,21 @@ - # Help files for RwdTinker core + # this code loads the help text - - :general_help => "You can work with Applets: go to 'Selection tab', <br> - On that back screen you will find:<br> - List Applets: you can see and delete installed applets<br> - List Zips: you can see lists of applets that you can install<br> - Edit Configuration: You can view the rwdtinker configuration and change it<br> - Diagnostic Tab: You can view the environments variables that rwdtinker is running with<br> - ", - :network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the<br> -init.rb file to something like:\n<br> -RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n<br> -Then you should be able to login at: http://yourhostname:8080", + + tmphelpfilename = "Tinkerhelptexthash.txt" + tmphelpdir = "rwd_files" + + begin # exception trapped block + + + fileName = File.join(tmphelpdir ,tmphelpfilename ) + + + fd = File.open(fileName,"r") + tmphelptext = fd.read + fd.close + eval tmphelptext + rescue SystemCallError, StandardError + $rwdtinkerlog.error "Tinkerbell help file load: system call error: " + end # exception rescue - - :documents_rwdtinker => "<b>Documents: - <p> - when you click on a document name, the document should pop up in a <br> - browser window, or in another browser tab.</b> - " - \ No newline at end of file