rwdschedule 0.92 → 0.93
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +131 -120
- data/bin/rwdschedule +18 -18
- data/code/{00rwdtinkercore/aa0begin.rb → 01rwdcore/01rwdcore.rb} +20 -18
- data/code/01rwdcore/02helptexthashbegin.rb +4 -0
- data/code/01rwdcore/03helptexthash.rb +48 -0
- data/code/01rwdcore/04helptextend.rb +6 -0
- data/code/01rwdcore/openhelpwindow.rb +45 -0
- data/code/{00rwdtinkercore → 01rwdcore}/rwdtinkerversion.rb +15 -15
- data/code/01rwdcore/rwdwindowreturn.rb +11 -0
- data/code/superant.com.rwdcalendar/gh9calendar.rb +40 -16
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +21 -21
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +21 -21
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +6 -6
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -32
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +13 -13
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -18
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +28 -28
- data/code/{superant.com.rwdtinkercallable/callable.rb → superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb} +11 -12
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -14
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +18 -18
- data/code/superant.com.schedule/archiveevent.rb +14 -0
- data/code/superant.com.schedule/cleareventscreendisplay.rb +15 -15
- data/code/superant.com.schedule/deleteeventrecord.rb +18 -18
- data/code/superant.com.schedule/deleterwdscheduleupdatefiles.rb +19 -19
- data/code/superant.com.schedule/downloadrwdschedulefiles.rb +34 -34
- data/code/superant.com.schedule/helptexthashrwdschedule.rb +52 -0
- data/code/superant.com.schedule/listeventdates.rb +18 -18
- data/code/superant.com.schedule/loadconfigurationrecord.rb +34 -0
- data/code/superant.com.schedule/loadconfigurationvariables.rb +13 -0
- data/code/superant.com.schedule/loadeventrecord.rb +29 -29
- data/code/superant.com.schedule/openhelpwindowrubyslippers.rb +25 -0
- data/code/superant.com.schedule/renameeventdata.rb +10 -10
- data/code/superant.com.schedule/runrwdschedulesyncbackwindow.rb +9 -8
- data/code/superant.com.schedule/rwdschedulehelpabout.rb +14 -14
- data/code/superant.com.schedule/saveconfigurationrecord.rb +18 -0
- data/code/superant.com.schedule/saveeventrecord.rb +18 -18
- data/code/superant.com.schedule/syncrwdschedule.rb +30 -30
- data/code/superant.com.schedule/uploadrwdschedulefiles.rb +30 -30
- data/code/superant.com.schedule/viewevent.rb +20 -20
- data/code/superant.com.schedule/viewrwdschedulesconfiguration.rb +21 -21
- data/code/zz0applicationend/zz0end.rb +4 -4
- data/configuration/language.cnf +5 -5
- data/configuration/rwdcalendar.cnf +4 -4
- data/configuration/rwdcalendarversion.cnf +4 -4
- data/configuration/rwdplayscriptsversion.cnf +2 -0
- data/configuration/rwdschedule.cnf +3 -3
- data/configuration/rwdscheduleversion.cnf +3 -3
- data/configuration/rwdtinker.cnf +3 -0
- data/configuration/rwdtinkerversion.cnf +2 -2
- data/configuration/tinkerwin2variables.cnf +8 -8
- data/configuration/tinkerwin2version.cnf +3 -3
- data/ev/browser.rb +109 -109
- data/ev/ftools.rb +170 -170
- data/ev/net.rb +750 -750
- data/ev/ruby.rb +819 -819
- data/ev/rwd.rb +1848 -1848
- data/ev/sgml.rb +236 -236
- data/ev/thread.rb +63 -63
- data/ev/tree.rb +343 -343
- data/ev/xml.rb +4 -4
- data/extras/cal.rb +158 -166
- data/gui/00coreguibegin/applicationguitop.rwd +4 -0
- data/gui/frontwindow0/superant.com.rwdschedules/gg0viewevent.rwd +27 -27
- data/gui/frontwindow0/superant.com.rwdschedules/gl6editrecord.rwd +36 -36
- data/gui/frontwindow0/superant.com.rwdschedules/gl8contactutilities.rwd +24 -24
- data/gui/frontwindow0/superant.com.rwdschedules/zviewconfiguration.rwd +38 -0
- data/gui/frontwindow0/superant.com.tinkercalendar/hl9calendar.rwd +27 -20
- data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +16 -16
- data/gui/frontwindowselections/superant.com.rwdscheduleselectiontab/rwdschedulessyncselectiontab.rwd +12 -12
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -12
- data/gui/frontwindowselectionzend/viewselectionzend/viewselectionend.rwd +3 -3
- data/gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd +6 -6
- data/gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd +15 -15
- data/gui/frontwindowtdocuments/superant.com.rwdscheduledocument/uu8doc_rwdschedule.rwd +4 -4
- data/gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd +6 -6
- data/gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd +12 -7
- data/gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd +6 -6
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd +4 -4
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd +10 -10
- data/gui/helpaboutinstalled/superant.com.schedulehelpabout/1rwdschedule.rwd +6 -6
- data/gui/helpaboutinstalled/superant.com.schedulehelpabout/5version.rwd +9 -9
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd +4 -4
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +10 -10
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +2 -2
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/1appname.rwd +5 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/20downloadftp.rwd +45 -44
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/66viewconfiguration.rwd +16 -16
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/70rwddiagnostics.rwd +33 -33
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/80returntab.rwd +11 -11
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/zvbackend.rwd +6 -6
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -5
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -44
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd +35 -35
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/{40editconfiguration.rwd → 60editconfiguration.rwd} +37 -36
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/{3arwddiagnostics.rwd → 70rwddiagnostics.rwd} +33 -33
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +11 -11
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -6
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +32 -0
- data/gui/tinkerbackwindows/{superant.com.tinercallablewindow → superant.com.tinkerhelpwindow}/9end.rwd +4 -4
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -19
- data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +4 -4
- data/init.rb +233 -233
- data/installed/rwdtinkerwin2-0.5.inf +8 -8
- data/installed/rwdviewlogo-0.4.inf +4 -0
- data/lang/alanguagehashbegin.rb +4 -4
- data/lang/en/rwdcalendar/calendar-en.rb +6 -0
- data/lang/en/rwdcore/languagefile.rb +15 -15
- data/lang/es/rwdcalendar/calendar-nl.rb +6 -6
- data/lang/es/rwdcore/languagefile-es.rb +14 -14
- data/lang/jp/rwdcore/languagefile.rb +9 -9
- data/lang/languagehash.rb +4 -4
- data/lang/nl/rwdcalendar/calendar-nl.rb +6 -6
- data/lang/nl/rwdcore/languagefile.rb +19 -19
- data/lang/templangfile.rb +21 -21
- data/lang/vlanguagehashend.rb +6 -6
- data/lang/wlocallangstart.rb +5 -5
- data/lang/xlocallangfile.rb +21 -21
- data/lang/zlocallangend.rb +2 -2
- data/lib/temp.rb +1 -1
- data/rwd_files/HowTo_Schedule.txt +131 -122
- data/rwd_files/HowTo_Tinker.txt +351 -318
- data/rwd_files/HowTo_TinkerWin2.txt +202 -202
- data/rwd_files/Readme.txt +57 -57
- data/rwd_files/rdoc-style.css +174 -174
- data/rwd_files/rwdapplications.html +54 -54
- data/schedules/200501january23CharlotteB-Day.sch +8 -8
- data/updates/200502Februay01 Lynn back.sch +8 -0
- data/updates/200502Februay21 PCU Diner.sch +8 -0
- data/updates/200502february16a.sch +8 -0
- data/updates/200505may02a.sch +8 -0
- data/updates/200506june20a.sch +8 -0
- data/updates/200506june29a.sch +8 -0
- data/updates/200507july04a.sch +8 -0
- data/updates/200510october26a.sch +8 -0
- metadata +100 -82
- data/gui/00coreguibegin/rwdapplicationguitop.rwd +0 -4
- data/gui/tinkerbackwindows/superant.com.tinercallablewindow/1appname.rwd +0 -17
- data/installed/rwdcalendar-0.5.inf +0 -8
- data/installed/schedulesampledata1.inf +0 -3
- data/lang/en/rwdcalendar/calendar-nl.rb +0 -6
- data/tests/totranslate.lang +0 -93
- data/zips/rwdahelloworld-0.5.zip +0 -0
@@ -1,14 +1,14 @@
|
|
1
|
-
# this code is to change the contact name
|
2
|
-
def changeeventdata
|
3
|
-
oldName = $rwdschedule_directory + "/" + @a_viewevent + ".sch"
|
1
|
+
# this code is to change the contact name
|
2
|
+
def changeeventdata
|
3
|
+
oldName = $rwdschedule_directory + "/" + @a_viewevent + ".sch"
|
4
4
|
newName = $rwdschedule_directory + "/" + @a_changeeventdata + ".sch"
|
5
|
-
begin
|
6
|
-
File.rename(oldName, newName)
|
5
|
+
begin
|
6
|
+
File.rename(oldName, newName)
|
7
7
|
@eventfilechangeresult = "File Renamed!"
|
8
|
-
rescue
|
9
|
-
@eventfilechangeresult = "rename error"
|
10
|
-
end
|
11
|
-
|
8
|
+
rescue
|
9
|
+
@eventfilechangeresult = "rename error"
|
10
|
+
end
|
11
|
+
|
12
12
|
end
|
13
13
|
|
14
|
-
|
14
|
+
|
@@ -1,9 +1,10 @@
|
|
1
|
-
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
2
|
-
# This application is a contact book
|
3
|
-
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
4
|
-
|
5
|
-
# call the window
|
6
|
-
def runrwdschedulesyncbackwindow
|
7
|
-
@rwd_window = "rwdschedulesyncwindow"
|
8
|
-
|
1
|
+
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a contact book
|
3
|
+
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the window
|
6
|
+
def runrwdschedulesyncbackwindow
|
7
|
+
@rwd_window = "rwdschedulesyncwindow"
|
8
|
+
@rwd_tab = "rwdschedulesynctasks"
|
9
|
+
end
|
9
10
|
|
@@ -1,14 +1,14 @@
|
|
1
|
-
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
-
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
-
# http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
4
|
-
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
5
|
-
|
6
|
-
# return the version constant defined in the config file
|
7
|
-
def runrwdscheduleversion
|
8
|
-
@rwd_window = "applicationversion"
|
9
|
-
@versionappnamedisplay = "RwdSchedule"
|
10
|
-
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
11
|
-
@versionnumberdisplay = "Version " + RwdScheduleVersion
|
12
|
-
|
13
|
-
end
|
14
|
-
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
+
# http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
4
|
+
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
5
|
+
|
6
|
+
# return the version constant defined in the config file
|
7
|
+
def runrwdscheduleversion
|
8
|
+
@rwd_window = "applicationversion"
|
9
|
+
@versionappnamedisplay = "RwdSchedule"
|
10
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
11
|
+
@versionnumberdisplay = "Version " + RwdScheduleVersion
|
12
|
+
|
13
|
+
end
|
14
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# this method adds a new address record
|
2
|
+
def saverwdscheduleconfiguration
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
newname = "rwdschedule.cnf" # grab the filename to create
|
6
|
+
newdata =@a_schconfigline1.to_s + "\n" + @a_schconfigline2.to_s + "\n" + @a_schconfigline3.to_s + "\n" + @a_schconfigline4.to_s + "\n" + @a_schconfigline5.to_s + "\n" + @a_schconfigline6.to_s + "\n" + @a_schconfigline7.to_s + "\n" + @a_schconfigline8.to_s + "\n" + @a_schconfigline9.to_s + "\n"
|
7
|
+
|
8
|
+
begin # exception trapped block
|
9
|
+
fileName = File.join( ConfigurationDir, newname )
|
10
|
+
fd = File.open(fileName,"w")
|
11
|
+
fd.print(newdata) # save the record info to the file
|
12
|
+
fd.close
|
13
|
+
@newconfigurationresult=newdata # show the record info in the browser
|
14
|
+
rescue SystemCallError, StandardError
|
15
|
+
$stderr.print "system call error: " + $!
|
16
|
+
end # exception rescue
|
17
|
+
|
18
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
# this method adds a new address record
|
2
|
-
def saveeventrecord
|
3
|
-
require 'fileutils'
|
4
|
-
if @a_eventfilename
|
5
|
-
newname = "%s" % [@a_eventfilename] # grab the new filename to create
|
6
|
-
newdata =@a_eventtime.to_s + "\n" + @a_eventwhat.to_s + "\n" + @a_eventaddress.to_s + "\n" + @a_eventphone.to_s + "\n" + @a_eventemail.to_s + "\n" + @a_eventcomment1.to_s + "\n" + @a_eventcomment2.to_s + "\n" + @a_eventcomment3.to_s + "\n"
|
7
|
-
fullnewname = newname + ".sch"
|
8
|
-
begin # exception trapped block
|
9
|
-
fileName = File.join( $rwdschedule_directory, fullnewname )
|
10
|
-
fd = File.open(fileName,"w")
|
11
|
-
fd.print(newdata) # save the record info to the file
|
12
|
-
fd.close
|
13
|
-
@neweventresult=newdata # show the record info in the browser
|
14
|
-
rescue SystemCallError, StandardError
|
15
|
-
$stderr.print "system call error: " + $!
|
16
|
-
end # exception rescue
|
17
|
-
end
|
18
|
-
end
|
1
|
+
# this method adds a new address record
|
2
|
+
def saveeventrecord
|
3
|
+
require 'fileutils'
|
4
|
+
if @a_eventfilename
|
5
|
+
newname = "%s" % [@a_eventfilename] # grab the new filename to create
|
6
|
+
newdata =@a_eventtime.to_s + "\n" + @a_eventwhat.to_s + "\n" + @a_eventaddress.to_s + "\n" + @a_eventphone.to_s + "\n" + @a_eventemail.to_s + "\n" + @a_eventcomment1.to_s + "\n" + @a_eventcomment2.to_s + "\n" + @a_eventcomment3.to_s + "\n"
|
7
|
+
fullnewname = newname + ".sch"
|
8
|
+
begin # exception trapped block
|
9
|
+
fileName = File.join( $rwdschedule_directory, fullnewname )
|
10
|
+
fd = File.open(fileName,"w")
|
11
|
+
fd.print(newdata) # save the record info to the file
|
12
|
+
fd.close
|
13
|
+
@neweventresult=newdata # show the record info in the browser
|
14
|
+
rescue SystemCallError, StandardError
|
15
|
+
$stderr.print "system call error: " + $!
|
16
|
+
end # exception rescue
|
17
|
+
end
|
18
|
+
end
|
@@ -1,30 +1,30 @@
|
|
1
|
-
def syncrwdscheduledata
|
2
|
-
require 'fileutils'
|
3
|
-
@rwdschedulesyncresult = ""
|
4
|
-
begin
|
5
|
-
|
6
|
-
@rwdschedulesyncresult = "updating local files" + "\n"
|
7
|
-
Dir.chdir($progdir)
|
8
|
-
|
9
|
-
localfileListarray = Dir.new($rwdschedule_directory).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /sch$/) }
|
10
|
-
remotefileListarray = Dir.new($rwdschedule_updatedirectory ).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /sch$/) }
|
11
|
-
|
12
|
-
tempupdatefilelistarray = remotefileListarray - localfileListarray
|
13
|
-
|
14
|
-
if tempupdatefilelistarray
|
15
|
-
tempupdatefilelistarray.each do |temp|
|
16
|
-
tmpfilenametosync = File.join($rwdschedule_updatedirectory,temp)
|
17
|
-
tmpfilenamecopied = File.join($rwdschedule_directory,temp)
|
18
|
-
FileUtils.cp( tmpfilenametosync, tmpfilenamecopied)
|
19
|
-
@rwdschedulesyncresult = @rwdschedulesyncresult + temp + "\n"
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
|
25
|
-
rescue
|
26
|
-
|
27
|
-
|
28
|
-
print "sync error"
|
29
|
-
end
|
30
|
-
end
|
1
|
+
def syncrwdscheduledata
|
2
|
+
require 'fileutils'
|
3
|
+
@rwdschedulesyncresult = ""
|
4
|
+
begin
|
5
|
+
|
6
|
+
@rwdschedulesyncresult = "updating local files" + "\n"
|
7
|
+
Dir.chdir($progdir)
|
8
|
+
|
9
|
+
localfileListarray = Dir.new($rwdschedule_directory).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /sch$/) }
|
10
|
+
remotefileListarray = Dir.new($rwdschedule_updatedirectory ).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /sch$/) }
|
11
|
+
|
12
|
+
tempupdatefilelistarray = remotefileListarray - localfileListarray
|
13
|
+
|
14
|
+
if tempupdatefilelistarray
|
15
|
+
tempupdatefilelistarray.each do |temp|
|
16
|
+
tmpfilenametosync = File.join($rwdschedule_updatedirectory,temp)
|
17
|
+
tmpfilenamecopied = File.join($rwdschedule_directory,temp)
|
18
|
+
FileUtils.cp( tmpfilenametosync, tmpfilenamecopied)
|
19
|
+
@rwdschedulesyncresult = @rwdschedulesyncresult + temp + "\n"
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
rescue
|
26
|
+
|
27
|
+
|
28
|
+
print "sync error"
|
29
|
+
end
|
30
|
+
end
|
@@ -1,30 +1,30 @@
|
|
1
|
-
def uploadrwdschedulefiles
|
2
|
-
require 'net/ftp'
|
3
|
-
BasicSocket.do_not_reverse_lookup = true
|
4
|
-
@rwdscheduleftpdisplays = ""
|
5
|
-
begin
|
6
|
-
ftp = Net::FTP::new($rwdschedule_ftpsite)
|
7
|
-
@rwdscheduleftpdisplay = "files uploaded" + "\n"
|
8
|
-
|
9
|
-
fileListarray = Dir.new($rwdschedule_directory).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /sch$/) }
|
10
|
-
if fileListarray
|
11
|
-
ftp.debug_mode = false
|
12
|
-
ftp.login($rwdschedule_ftplogin, $rwdschedule_ftppassword)
|
13
|
-
ftp.chdir($rwdschedule_ftpdirectory)
|
14
|
-
print "I'm in the directory ", ftp.pwd(), "\n"
|
15
|
-
fileListarray.each do |temp|
|
16
|
-
tmpfilenametoupload = File.join($rwdschedule_directory,temp)
|
17
|
-
ftp.puttextfile(tmpfilenametoupload , temp)
|
18
|
-
@rwdscheduleftpdisplay = @rwdscheduleftpdisplay + temp + "\n"
|
19
|
-
end
|
20
|
-
end
|
21
|
-
ftp.close
|
22
|
-
|
23
|
-
rescue
|
24
|
-
|
25
|
-
if ftp
|
26
|
-
ftp.close
|
27
|
-
end
|
28
|
-
print "ftp error"
|
29
|
-
end
|
30
|
-
end
|
1
|
+
def uploadrwdschedulefiles
|
2
|
+
require 'net/ftp'
|
3
|
+
BasicSocket.do_not_reverse_lookup = true
|
4
|
+
@rwdscheduleftpdisplays = ""
|
5
|
+
begin
|
6
|
+
ftp = Net::FTP::new($rwdschedule_ftpsite)
|
7
|
+
@rwdscheduleftpdisplay = "files uploaded" + "\n"
|
8
|
+
|
9
|
+
fileListarray = Dir.new($rwdschedule_directory).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /sch$/) }
|
10
|
+
if fileListarray
|
11
|
+
ftp.debug_mode = false
|
12
|
+
ftp.login($rwdschedule_ftplogin, $rwdschedule_ftppassword)
|
13
|
+
ftp.chdir($rwdschedule_ftpdirectory)
|
14
|
+
print "I'm in the directory ", ftp.pwd(), "\n"
|
15
|
+
fileListarray.each do |temp|
|
16
|
+
tmpfilenametoupload = File.join($rwdschedule_directory,temp)
|
17
|
+
ftp.puttextfile(tmpfilenametoupload , temp)
|
18
|
+
@rwdscheduleftpdisplay = @rwdscheduleftpdisplay + temp + "\n"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
ftp.close
|
22
|
+
|
23
|
+
rescue
|
24
|
+
|
25
|
+
if ftp
|
26
|
+
ftp.close
|
27
|
+
end
|
28
|
+
print "ftp error"
|
29
|
+
end
|
30
|
+
end
|
@@ -1,20 +1,20 @@
|
|
1
|
-
def viewevent
|
2
|
-
require 'fileutils'
|
3
|
-
$currenteventtext = "%s" % [@a_viewevent]
|
4
|
-
|
5
|
-
begin # exception trapped block
|
6
|
-
|
7
|
-
|
8
|
-
fileName = $rwdschedule_directory + "/" + $currenteventtext + ".sch"
|
9
|
-
|
10
|
-
fd = File.open(fileName,"r")
|
11
|
-
@displayevent = " "
|
12
|
-
while ! fd.eof?
|
13
|
-
@displayevent = fd.read
|
14
|
-
end
|
15
|
-
fd.close
|
16
|
-
rescue SystemCallError, StandardError
|
17
|
-
$stderr.print "system call error: " + $!
|
18
|
-
end # exception rescue
|
19
|
-
|
20
|
-
end
|
1
|
+
def viewevent
|
2
|
+
require 'fileutils'
|
3
|
+
$currenteventtext = "%s" % [@a_viewevent]
|
4
|
+
|
5
|
+
begin # exception trapped block
|
6
|
+
|
7
|
+
|
8
|
+
fileName = $rwdschedule_directory + "/" + $currenteventtext + ".sch"
|
9
|
+
|
10
|
+
fd = File.open(fileName,"r")
|
11
|
+
@displayevent = " "
|
12
|
+
while ! fd.eof?
|
13
|
+
@displayevent = fd.read
|
14
|
+
end
|
15
|
+
fd.close
|
16
|
+
rescue SystemCallError, StandardError
|
17
|
+
$stderr.print "system call error: " + $!
|
18
|
+
end # exception rescue
|
19
|
+
|
20
|
+
end
|
@@ -1,21 +1,21 @@
|
|
1
|
-
def viewrwdschedulesconfiguration
|
2
|
-
require 'fileutils'
|
3
|
-
begin # exception trapped block
|
4
|
-
|
5
|
-
Dir.chdir($progdir)
|
6
|
-
rwdschedulesconfigurationfile = File.join( "configuration", "rwdschedule.cnf" )
|
7
|
-
if File.exist?(rwdschedulesconfigurationfile)
|
8
|
-
fd = File.open(rwdschedulesconfigurationfile,"r")
|
9
|
-
@rwdschedulesconfigurationtext = " "
|
10
|
-
while ! fd.eof?
|
11
|
-
@rwdschedulesconfigurationtext = fd.read
|
12
|
-
end
|
13
|
-
fd.close
|
14
|
-
else
|
15
|
-
@rwdschedulesconfigurationtext = "File error"
|
16
|
-
end
|
17
|
-
rescue SystemCallError, StandardError
|
18
|
-
$stderr.print "system call error: " + $!
|
19
|
-
@rwdschedulesconfigurationtext = "File error"
|
20
|
-
end # exception rescue
|
21
|
-
end
|
1
|
+
def viewrwdschedulesconfiguration
|
2
|
+
require 'fileutils'
|
3
|
+
begin # exception trapped block
|
4
|
+
|
5
|
+
Dir.chdir($progdir)
|
6
|
+
rwdschedulesconfigurationfile = File.join( "configuration", "rwdschedule.cnf" )
|
7
|
+
if File.exist?(rwdschedulesconfigurationfile)
|
8
|
+
fd = File.open(rwdschedulesconfigurationfile,"r")
|
9
|
+
@rwdschedulesconfigurationtext = " "
|
10
|
+
while ! fd.eof?
|
11
|
+
@rwdschedulesconfigurationtext = fd.read
|
12
|
+
end
|
13
|
+
fd.close
|
14
|
+
else
|
15
|
+
@rwdschedulesconfigurationtext = "File error"
|
16
|
+
end
|
17
|
+
rescue SystemCallError, StandardError
|
18
|
+
$stderr.print "system call error: " + $!
|
19
|
+
@rwdschedulesconfigurationtext = "File error"
|
20
|
+
end # exception rescue
|
21
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
end # end of rwdtinker class
|
4
|
-
|
1
|
+
|
2
|
+
|
3
|
+
end # end of rwdtinker class
|
4
|
+
|
data/configuration/language.cnf
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
#$lang = "jp"
|
3
|
-
$lang= "en"
|
4
|
-
#$lang= "nl"
|
5
|
-
#$lang= "es"
|
1
|
+
|
2
|
+
#$lang = "jp"
|
3
|
+
$lang= "en"
|
4
|
+
#$lang= "nl"
|
5
|
+
#$lang= "es"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
$extras_directory = "extras"
|
3
|
-
|
4
|
-
|
1
|
+
|
2
|
+
$extras_directory = "extras"
|
3
|
+
|
4
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
$rwdschedule_directory = "schedules"
|
3
|
-
$rwdschedule_ftpsite = "ftp.
|
4
|
-
$rwdschedule_ftplogin = "
|
5
|
-
$rwdschedule_ftppassword = "
|
3
|
+
$rwdschedule_ftpsite = "ftp.mysite.com"
|
4
|
+
$rwdschedule_ftplogin = "mylogin"
|
5
|
+
$rwdschedule_ftppassword = "mypassword"
|
6
6
|
$rwdschedule_ftpdirectory = "/incoming/rwdschedules/"
|
7
7
|
$rwdschedule_updatedirectory = "updates"
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
RwdScheduleVersion = "0.
|
3
|
-
|
1
|
+
|
2
|
+
RwdScheduleVersion = "0.93"
|
3
|
+
|
data/configuration/rwdtinker.cnf
CHANGED
@@ -9,4 +9,7 @@ TempLangHashFile = LangDir + "/" + "templangfile.rb"
|
|
9
9
|
LocalLangHashFile = LangDir + "/" + "xlocallangfile.rb"
|
10
10
|
CodeDir = "code"
|
11
11
|
GuiDir = "gui"
|
12
|
+
$help_topic = "general_help"
|
13
|
+
$helptopicsarray = [ "general_help","network_help"]
|
14
|
+
$prevouswindow ="main"
|
12
15
|
$port = 7705
|
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
RwdTinkerVersion = "1.
|
1
|
+
|
2
|
+
RwdTinkerVersion = "1.47"
|
@@ -1,8 +1,8 @@
|
|
1
|
-
|
2
|
-
TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
|
3
|
-
$zipslocation = "zips" # location of applets to add
|
4
|
-
$unzipprogram = "unzip -o "
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
|
2
|
+
TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
|
3
|
+
$zipslocation = "zips" # location of applets to add
|
4
|
+
$unzipprogram = "unzip -o "
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
RwdTinkerWin2Version = "0.
|
3
|
-
|
1
|
+
|
2
|
+
RwdTinkerWin2Version = "0.8"
|
3
|
+
|