code/superant.com.rwdtinkerbackwindow/installapplet.rb in rwdschedule-0.98 vs code/superant.com.rwdtinkerbackwindow/installapplet.rb in rwdschedule-0.99

- old
+ new

@@ -1,24 +1,25 @@ # code in install rwdtinker applets - now uses ruby.zip module - def installapplet - - nametext = "%s" % [@a_installapplet] +def installapplet - begin # exception trapped block + nametext = "%s" % [@a_installapplet] + begin # exception trapped block - require 'extras/zip/zip' - fullname = nametext + ".zip" - fileName = File.join($zipslocation,fullname) - zf = Zip::ZipFile.new(fileName) - zf.sort.each { - |entry| - zf.extract(entry.to_s, entry.to_s) - } - @installapplettext = Message[:applet_installed] - - rescue - @installapplettext = "unzip error - applet may not be installed correctly" - end # exception rescue + require 'extras/zip/zip' + fullname = nametext + ".zip" + fileName = File.join($zipslocation,fullname) - end + zf = Zip::ZipFile.new(fileName) + zf.sort.each { + |entry| + zf.extract(entry.to_s, entry.to_s) + } + @installapplettext = Message[:applet_installed] + + rescue + @installapplettext = "unzip error - applet may not be installed correctly" + end # exception rescue + +end +