bigtinker 0.95 → 0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Readme.txt +20 -7
- data/code/superant.com.rwdaddresses/0uninstallapplet.rb +14 -0
- data/code/superant.com.rwdaddresses/attachtmpcontactphoto.rb +24 -0
- data/code/superant.com.rwdaddresses/clearscreendisplay.rb +15 -0
- data/code/superant.com.rwdaddresses/createnewnamerecord.rb +19 -0
- data/code/superant.com.rwdaddresses/deletecontactrecord.rb +25 -0
- data/code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb +19 -0
- data/code/superant.com.rwdaddresses/downloadrwdaddressfiles.rb +36 -0
- data/code/superant.com.rwdaddresses/helptexthashrwdaddresses.rb +69 -0
- data/code/superant.com.rwdaddresses/listnamerecord.rb +15 -0
- data/code/superant.com.rwdaddresses/listvcardrecord.rb +15 -0
- data/code/{superant.com.schedule → superant.com.rwdaddresses}/loadconfigurationrecord.rb +4 -4
- data/code/superant.com.rwdaddresses/loadconfigurationvariables.rb +15 -0
- data/code/superant.com.rwdaddresses/loadnamerecord.rb +30 -0
- data/code/superant.com.rwdaddresses/openhelpwindowrwdaddresses.rb +30 -0
- data/code/superant.com.rwdaddresses/renamecontact.rb +15 -0
- data/code/superant.com.rwdaddresses/runaddresseswindow.rb +10 -0
- data/code/superant.com.rwdaddresses/runrwdaddressesmenu1.rb +34 -0
- data/code/superant.com.rwdaddresses/runrwdaddresssyncbackwindow.rb +10 -0
- data/code/superant.com.rwdaddresses/rwdaddressesbackwindow.rb +10 -0
- data/code/superant.com.rwdaddresses/rwdaddresseshelpabout.rb +10 -0
- data/code/superant.com.rwdaddresses/saveconfigurationrecord.rb +20 -0
- data/code/superant.com.rwdaddresses/savevcardrecord.rb +76 -0
- data/code/superant.com.rwdaddresses/syncrwdaddress.rb +28 -0
- data/code/{superant.com.schedule → superant.com.rwdaddresses}/test_cases.rb +10 -10
- data/code/superant.com.rwdaddresses/uploadrwdaddressfiles.rb +30 -0
- data/code/superant.com.rwdaddresses/viewaddressconfiguration.rb +21 -0
- data/code/superant.com.rwdaddresses/viewnamedata.rb +28 -0
- data/code/superant.com.rwdaddresses/viewphoto.rb +4 -0
- data/code/superant.com.rwdaddresses/viewrwdaddressesconfiguration.rb +23 -0
- data/code/superant.com.rwdaddresses/viewtmpcontactphoto.rb +12 -0
- data/code/superant.com.rwdaddresses/viewvcarddata.rb +22 -0
- data/code/superant.com.rwdcalc/ca2multiply.rb +10 -0
- data/code/superant.com.rwdcalc/changescriptname.rb +16 -0
- data/code/superant.com.rwdcalc/clearscriptscreendisplay.rb +9 -0
- data/code/superant.com.rwdcalc/deletescriptrecord.rb +20 -0
- data/code/superant.com.rwdcalc/fadd.rb +10 -0
- data/code/superant.com.rwdcalc/frwdcleartape.rb +9 -0
- data/code/superant.com.rwdcalc/frwddivide.rb +10 -0
- data/code/superant.com.rwdcalc/frwdmultiply.rb +10 -0
- data/code/superant.com.rwdcalc/frwdsubtract.rb +10 -0
- data/code/superant.com.rwdcalc/helptexthashrwdcalc.rb +16 -0
- data/code/superant.com.rwdcalc/listscripts.rb +13 -0
- data/code/superant.com.rwdcalc/loadscriptrecord.rb +20 -0
- data/code/superant.com.rwdcalc/mathcommands.rb +53 -0
- data/code/superant.com.rwdcalc/openhelpwindowrwdcalc.rb +21 -0
- data/code/superant.com.rwdcalc/playscript.rb +22 -0
- data/code/superant.com.rwdcalc/renamecalcrecord.rb +14 -0
- data/code/{superant.com.rwdshell/returntomain.rb → superant.com.rwdcalc/runrwdcalcwindow.rb} +9 -9
- data/code/superant.com.rwdcalc/rwdadd.rb +10 -0
- data/code/{superant.com.schedule/rwdmoviesversion.rb → superant.com.rwdcalc/rwdcalcversion.rb} +2 -2
- data/code/superant.com.rwdcalc/rwdcleartape.rb +9 -0
- data/code/superant.com.rwdcalc/rwddivision.rb +10 -0
- data/code/superant.com.rwdcalc/rwdsubtraction.rb +10 -0
- data/code/superant.com.rwdcalc/savechangedscript.rb +19 -0
- data/code/superant.com.rwdcalc/uninstallapplet.rb +31 -0
- data/code/superant.com.rwdcalc/viewscript.rb +18 -0
- data/code/superant.com.rwdshell/0runrefreshacpi.rb +7 -0
- data/code/superant.com.rwdshell/0uninstallapplet.rb +7 -7
- data/code/superant.com.rwdshell/helptexthashshell.rb +13 -1
- data/code/superant.com.rwdshell/loadconfigurationrecord.rb +3 -3
- data/code/superant.com.rwdshell/loadconfigurationvariables.rb +2 -2
- data/code/superant.com.rwdshell/openhelpwindowshell.rb +3 -1
- data/code/superant.com.rwdshell/refresh.rb +19 -0
- data/code/superant.com.rwdshell/refreshacpi.rb +16 -0
- data/code/superant.com.rwdshell/rubyeval.rb +15 -20
- data/code/superant.com.rwdshell/runrwdshellbackwindow.rb +3 -3
- data/code/superant.com.rwdshell/runrwdshellwindow.rb +2 -2
- data/code/superant.com.rwdshell/rwdtinkerversion.rb +2 -2
- data/code/superant.com.rwdshell/saveconfigurationrecord.rb +1 -1
- data/code/superant.com.rwdshell/test_cases.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +39 -34
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +9 -7
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +8 -2
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +8 -6
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +13 -0
- data/configuration/bigtinker.dist +2 -2
- data/configuration/language.dist +2 -2
- data/configuration/rwdapplicationidentity.dist +1 -1
- data/configuration/rwdtinker.dist +4 -7
- data/configuration/rwdwaddresses.dist +24 -0
- data/configuration/rwdwcalc.dist +19 -0
- data/configuration/rwdwruby.dist +24 -0
- data/configuration/tinkerwin2variables.dist +8 -7
- data/gui/tinkerbackwindows/superant.com.addressesphotowindow/yy7addressesphoto.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.ashellscripts/1appname.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.ashellscripts/1rwdrubyeval.rwd +2 -1
- data/gui/tinkerbackwindows/superant.com.ashellscripts/2arubyeval.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.refreshacpi/1appname.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.refreshacpi/2rwdrefresh.rwd +14 -0
- data/gui/tinkerbackwindows/superant.com.refreshacpi/3rwdacpirefresh.rwd +14 -0
- data/gui/tinkerbackwindows/superant.com.refreshacpi/81jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedules/zvbackend.rwd → superant.com.refreshacpi/z9end.rwd} +6 -6
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/10appletbegin.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/11viewnamedata.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/13listnamerecordfiles.rwd +21 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/16editrecord.rwd +39 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/17viewvcardrecord.rwd +32 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/18contactutilities.rwd +34 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/81jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedulesback/zvbackend.rwd → superant.com.rwdaddresses/9end.rwd} +6 -6
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/1appname.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/20downloadftp.rwd +45 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedulebackwindow → superant.com.rwdaddressessyncbackwindow}/70rwddiagnostics.rwd +23 -16
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/87viewconfiguration.rwd +34 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/94selectiontab.rwd +11 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedules/m01menubegin.rwd → superant.com.rwdaddressessyncbackwindow/95jumplink.rwd} +2 -5
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/97selectionend.rwd +3 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedulebackwindow → superant.com.rwdaddressessyncbackwindow}/zvbackend.rwd +6 -6
- data/gui/tinkerbackwindows/superant.com.rwdcalc/1appname.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/20floatrwdcalc.rwd +24 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/30intrwdcalc.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/35mathcommands.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/44listplayscripts.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/45listscripts.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/46editscriptrecord.rwd +30 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/4scriptutilities.rwd +25 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedulesback/m01menubegin.rwd → superant.com.rwdcalc/77jumplinkcommands.rwd} +4 -5
- data/gui/tinkerbackwindows/superant.com.rwdcalc/z9end.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/1appname.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/92viewconfiguration.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
- data/init.rb +5 -0
- data/installed/rwdaddressesdata2.inf +7 -0
- data/installed/{rwdshelldata1.inf → rwdrubydata1.inf} +1 -1
- data/installed/rwdwaddresses.inf +13 -0
- data/installed/rwdwcalc.inf +10 -0
- data/installed/rwdwruby.inf +12 -0
- data/lang/en/rwdcore/languagefile.rb +1 -0
- data/lang/es/rwdcore/languagefile-es.rb +1 -0
- data/lang/fr/rwdcore/languagefile.rb +1 -0
- data/lang/jp/rwdcore/languagefile.rb +1 -0
- data/lang/nl/rwdcore/languagefile.rb +1 -0
- data/lib/rconftool.rb +13 -6
- data/lib/rwd/net.rb +15 -4
- data/lib/rwd/ruby.rb +1 -1
- data/lib/rwd/rwd.rb +103 -620
- data/lib/rwdthemes/default.rwd +317 -0
- data/lib/rwdthemes/pda.rwd +72 -0
- data/lib/rwdthemes/windowslike.rwd +171 -0
- data/lib/rwdtinker/rwdtinkertools.rb +24 -0
- data/names/Angelina Jolie.jpg +0 -0
- data/names/Angelina Jolie.nam +8 -0
- data/names/Angelina Jolie.vcf +8 -0
- data/names/Steven Gibson.jpg +0 -0
- data/names/Steven Gibson.nam +5 -0
- data/names/elektra.jpg +0 -0
- data/names/elektra.nam +7 -0
- data/names/nophoto.jpg +0 -0
- data/rwd_files/HowTo_Addresses.txt +272 -0
- data/rwd_files/HowTo_BigTinker.txt +11 -0
- data/rwd_files/{HowTo_Shell.txt → HowTo_Ruby.txt} +35 -4
- data/rwd_files/HowTo_RwdCalc.txt +127 -0
- data/rwd_files/HowTo_Tinker.txt +17 -1
- data/rwd_files/contacttmp.jpg +0 -0
- data/rwd_files/log/rwdtinker.log +2 -0
- data/rwdconfig.dist +14 -13
- data/scripts/test02.math +2 -0
- data/tests/{makedist-rwdwhypernote.rb → makedist-rwdwaddesses.rb} +3 -3
- data/tests/makedist-rwdwcalc.rb +58 -0
- data/tests/{makedist-rwdwshell.rb → makedist-rwdwruby.rb} +7 -5
- data/tests/makedist.rb +1 -1
- data/updates/temp.rb +1 -0
- data/zips/{rwdwaddresses-1.05.zip → rwdwaddresses-1.07.zip} +0 -0
- data/zips/rwdwcalc-0.63.zip +0 -0
- data/zips/rwdwfoldeditor-0.05.zip +0 -0
- data/zips/{rwdwgutenberg-0.09.zip → rwdwgutenberg-0.11.zip} +0 -0
- data/zips/rwdwhypernote-0.15.zip +0 -0
- data/zips/rwdwruby-1.08.zip +0 -0
- data/zips/{rwdwschedule-1.04.zip → rwdwschedule-1.05.zip} +0 -0
- data/zips/rwdwtorrent-0.07.zip +0 -0
- data/zips/wrubyslippers-1.07.zip +0 -0
- metadata +148 -103
- data/code/superant.com.rwdcalendar/gh9calendar.rb +0 -40
- data/code/superant.com.rwdcalendar/helptexthashrwdschedule.rb +0 -14
- data/code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb +0 -17
- data/code/superant.com.schedule/0uninstallapplet.rb +0 -15
- data/code/superant.com.schedule/archiveevent.rb +0 -14
- data/code/superant.com.schedule/archiveicsevent.rb +0 -14
- data/code/superant.com.schedule/cleareventscreendisplay.rb +0 -19
- data/code/superant.com.schedule/deleteeventrecord.rb +0 -19
- data/code/superant.com.schedule/deleteicseventrecord.rb +0 -19
- data/code/superant.com.schedule/deleterwdscheduleupdatefiles.rb +0 -20
- data/code/superant.com.schedule/downloadrwdschedulefiles.rb +0 -37
- data/code/superant.com.schedule/exporticseventrecord.rb +0 -97
- data/code/superant.com.schedule/helptexthashrwdschedule.rb +0 -82
- data/code/superant.com.schedule/listeventdates.rb +0 -19
- data/code/superant.com.schedule/listicseventdates.rb +0 -19
- data/code/superant.com.schedule/loadconfigurationvariables.rb +0 -14
- data/code/superant.com.schedule/loadeventrecord.rb +0 -38
- data/code/superant.com.schedule/loadicseventrecord.rb +0 -30
- data/code/superant.com.schedule/openhelpwindowrwdschedule.rb +0 -43
- data/code/superant.com.schedule/renameeventdata.rb +0 -14
- data/code/superant.com.schedule/renameicseventdata.rb +0 -17
- data/code/superant.com.schedule/returntomain.rb +0 -10
- data/code/superant.com.schedule/runrwdscheduleicsbackwindow.rb +0 -10
- data/code/superant.com.schedule/runrwdschedulemenu1.rb +0 -34
- data/code/superant.com.schedule/runrwdschedulesyncbackwindow.rb +0 -10
- data/code/superant.com.schedule/saveconfigurationrecord.rb +0 -19
- data/code/superant.com.schedule/saveeventrecord.rb +0 -25
- data/code/superant.com.schedule/saveicseventrecord.rb +0 -98
- data/code/superant.com.schedule/syncrwdschedule.rb +0 -30
- data/code/superant.com.schedule/uploadrwdschedulefiles.rb +0 -30
- data/code/superant.com.schedule/viewevent.rb +0 -20
- data/code/superant.com.schedule/viewicsevent.rb +0 -20
- data/code/superant.com.schedule/viewrwdschedulesconfiguration.rb +0 -21
- data/configuration/rwdwschedule-1.04.dist +0 -25
- data/configuration/rwdwshell-1.04.dist +0 -16
- data/extras/cal.rb +0 -158
- data/extras/icalendar/base.rb +0 -17
- data/extras/icalendar/calendar.rb +0 -44
- data/extras/icalendar/calendar_parser.rb +0 -237
- data/extras/icalendar/component/alarm.rb +0 -16
- data/extras/icalendar/component/event.rb +0 -25
- data/extras/icalendar/component/freebusy.rb +0 -12
- data/extras/icalendar/component/journal.rb +0 -25
- data/extras/icalendar/component/timezone.rb +0 -26
- data/extras/icalendar/component/todo.rb +0 -21
- data/extras/icalendar/component.rb +0 -91
- data/extras/icalendar/helpers.rb +0 -103
- data/extras/icalendar/parameter.rb +0 -25
- data/extras/icalendar.rb +0 -18
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/20downloadftp.rwd +0 -45
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +0 -29
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +0 -18
- data/gui/tinkerbackwindows/superant.com.rwdschedules/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedules/gg0viewevent.rwd +0 -27
- data/gui/tinkerbackwindows/superant.com.rwdschedules/gl6editrecord.rwd +0 -56
- data/gui/tinkerbackwindows/superant.com.rwdschedules/gl8contactutilities.rwd +0 -25
- data/gui/tinkerbackwindows/superant.com.rwdschedules/hl9calendar.rwd +0 -27
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/30viewevent.rwd +0 -27
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/40editrecord.rwd +0 -49
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/60eventicsutilities.rwd +0 -25
- data/installed/rwdscheduledate2.inf +0 -6
- data/installed/rwdwschedule-1.04.inf +0 -17
- data/installed/rwdwshell-1.04.inf +0 -11
- data/lang/en/rwdcalendar/calendar-en.rb +0 -6
- data/lang/es/rwdcalendar/calendar-nl.rb +0 -6
- data/lang/nl/rwdcalendar/calendar-nl.rb +0 -6
- data/rwd_files/HowTo_RubyEval.html +0 -80
- data/rwd_files/HowTo_Schedule.txt +0 -257
- data/zips/rwdwcalc-0.61.zip +0 -0
- data/zips/rwdwshell-1.04.zip +0 -0
- data/zips/wrubyslippers-1.06.zip +0 -0
- /data/gui/tinkerbackwindows/{superant.com.rwdshellbackwindow → superant.com.ashellscripts}/44listplayscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.rwdshellbackwindow → superant.com.ashellscripts}/45listscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.rwdshellbackwindow → superant.com.ashellscripts}/46editscriptrecord.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/2listplayscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/2listscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/3editscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/4scriptutilities.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/6rwdshelleval.rwd +0 -0
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# this method exports a new record
|
|
2
|
-
def exporteventrecord
|
|
3
|
-
Dir.chdir($progdir)
|
|
4
|
-
require 'fileutils'
|
|
5
|
-
require 'extras/icalendar'
|
|
6
|
-
if ! @a_eventfilename.empty?
|
|
7
|
-
newname = "%s" % [@a_eventfilename] # grab the new filename to create
|
|
8
|
-
|
|
9
|
-
fullnewname = newname + ".ics"
|
|
10
|
-
cal = Icalendar::Calendar.new
|
|
11
|
-
|
|
12
|
-
cal.version = "3.2"
|
|
13
|
-
cal.prodid = "rwdtinker-prodid"
|
|
14
|
-
event = Icalendar::Event.new
|
|
15
|
-
newdataText = ""
|
|
16
|
-
if ! @a_eventyear.empty?
|
|
17
|
-
temptimedata = @a_eventyear.to_s.strip
|
|
18
|
-
else
|
|
19
|
-
temptimedata = "0000"
|
|
20
|
-
end
|
|
21
|
-
if ! @a_eventmonth.empty?
|
|
22
|
-
temptimedata= temptimedata + @a_eventmonth.to_s
|
|
23
|
-
else
|
|
24
|
-
temptimedata = temptimedata + "00"
|
|
25
|
-
end
|
|
26
|
-
if ! @a_eventday.empty?
|
|
27
|
-
temptimedata = temptimedata + @a_eventday.to_s
|
|
28
|
-
else
|
|
29
|
-
temptimedata = temptimedata + "00"
|
|
30
|
-
end
|
|
31
|
-
daydate =temptimedata
|
|
32
|
-
if ! @a_eventbeginhour.empty?
|
|
33
|
-
temptimedata= temptimedata + "T" + @a_eventhour.to_s
|
|
34
|
-
else
|
|
35
|
-
temptimedata = temptimedata + "T" + "00"
|
|
36
|
-
end
|
|
37
|
-
if ! @a_eventbeginminute.empty?
|
|
38
|
-
temptimedata = temptimedata + @a_eventbeginminute.to_s
|
|
39
|
-
else
|
|
40
|
-
temptimedata = temptimedata + "00"
|
|
41
|
-
end
|
|
42
|
-
if ! @a_eventendhour.empty?
|
|
43
|
-
tempendtimedata= daydate + "T" + @a_eventendhour.to_s
|
|
44
|
-
else
|
|
45
|
-
tempendtimedata = daydate + "T" + "00"
|
|
46
|
-
end
|
|
47
|
-
if ! @a_eventendminute.empty?
|
|
48
|
-
tempendtimedata = tempendtimedata + @a_eventendminute.to_s
|
|
49
|
-
else
|
|
50
|
-
tempendtimedata = tempendtimedata + "00"
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
if ! @a_eventsummary.empty?
|
|
54
|
-
summarydataText = @a_eventsummary.to_s
|
|
55
|
-
else
|
|
56
|
-
summarydataText = ""
|
|
57
|
-
end
|
|
58
|
-
if ! @a_eventdescription.empty?
|
|
59
|
-
descriptiondataText = @a_eventdescription.to_s
|
|
60
|
-
else
|
|
61
|
-
descriptiondataText = ""
|
|
62
|
-
end
|
|
63
|
-
if ! @a_eventlocation.empty?
|
|
64
|
-
locationdataText = @a_eventlocation.to_s
|
|
65
|
-
else
|
|
66
|
-
locationdataText = ""
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
starttime = temptimedata + "00"
|
|
70
|
-
endtime = tempendtimedata + "00"
|
|
71
|
-
|
|
72
|
-
# Create a new event and add it to the calendar
|
|
73
|
-
|
|
74
|
-
event.dtstart = starttime
|
|
75
|
-
event.dtend = endtime
|
|
76
|
-
event.summary = summarydataText
|
|
77
|
-
event.description = descriptiondataText
|
|
78
|
-
event.location = locationdataText
|
|
79
|
-
cal.add(event)
|
|
80
|
-
# Now generate the string and then parse it so we can verify
|
|
81
|
-
# that everything was set, generated and parsed correctly.
|
|
82
|
-
calString = cal.to_s
|
|
83
|
-
p calString
|
|
84
|
-
#cals = Icalendar::CalendarParser.new(calString).parse
|
|
85
|
-
|
|
86
|
-
# cal2 = cals.first
|
|
87
|
-
# begin # exception trapped block
|
|
88
|
-
fileName = File.join( $rwdschedule_directory, fullnewname )
|
|
89
|
-
fd = File.open(fileName,"w")
|
|
90
|
-
fd.print( calString ) # save the record info to the file
|
|
91
|
-
fd.close
|
|
92
|
-
@neweventresult= calString # show the record info in the browser
|
|
93
|
-
# rescue SystemCallError, StandardError
|
|
94
|
-
# $stderr.print "system call error: " + $!
|
|
95
|
-
# end # exception rescue
|
|
96
|
-
end
|
|
97
|
-
end
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Helptext.update( :rwdschedule_generalhelp => " Use the 'Edit Event' tab
|
|
4
|
-
The first field is the most important. It is the filename that
|
|
5
|
-
will be created. I use the event date starting with yearmonthday
|
|
6
|
-
2005january11
|
|
7
|
-
|
|
8
|
-
The following lines for entry are for you to fill in as you want.
|
|
9
|
-
When you are finished press the Save Changes button
|
|
10
|
-
|
|
11
|
-
You use this same screen for editing an already saved event ",
|
|
12
|
-
:rwdschedulefilelist_generalhelp => "
|
|
13
|
-
Click on the list events button.
|
|
14
|
-
|
|
15
|
-
Click on the date you want
|
|
16
|
-
|
|
17
|
-
Then click the 'Open' button
|
|
18
|
-
|
|
19
|
-
If it finds the record it will open it. It displays the record
|
|
20
|
-
as text under the 'Open' button.",
|
|
21
|
-
:eventutilities_help => " On the event utilities tab
|
|
22
|
-
|
|
23
|
-
You can rename event filenames
|
|
24
|
-
You can delete events
|
|
25
|
-
|
|
26
|
-
",
|
|
27
|
-
|
|
28
|
-
:rwdschedule_configuration => " click on 'Edit Configuration'
|
|
29
|
-
You can view the configuration file
|
|
30
|
-
|
|
31
|
-
You can edit the configuration
|
|
32
|
-
|
|
33
|
-
Remember to reload the configuration variables if you want your
|
|
34
|
-
changes used.",
|
|
35
|
-
:rwdschedule_sync => "Sync for multiple computers
|
|
36
|
-
|
|
37
|
-
If you are like me, you have more than one system
|
|
38
|
-
I use rwdTinker at home on my Linux laptop
|
|
39
|
-
at work I use it on XP
|
|
40
|
-
on the go I use rwdtinker on my Zaurus PDA
|
|
41
|
-
So I am adding schedule events on different machines.
|
|
42
|
-
There is a function to help sync the separate systems
|
|
43
|
-
|
|
44
|
-
in 'Selection Panel' click on 'Open Schedule Sync Window'
|
|
45
|
-
|
|
46
|
-
First you need your ftp details set in the
|
|
47
|
-
configuration/rwdschedule.cnf file
|
|
48
|
-
|
|
49
|
-
you can upload your events from your local schedules directory to the ftp site
|
|
50
|
-
you can download events from the ftp site to your local updates directory
|
|
51
|
-
you can perform a sync which finds remote events and adds them to your local
|
|
52
|
-
schedules directory
|
|
53
|
-
|
|
54
|
-
There is a button to delete the update directory when finished",
|
|
55
|
-
:calendar_help => "On the 'Show Month' tab
|
|
56
|
-
You can see the current month or
|
|
57
|
-
enter a year and month
|
|
58
|
-
for example:
|
|
59
|
-
Year: 2005
|
|
60
|
-
Month: 2
|
|
61
|
-
Click on 'show month'
|
|
62
|
-
|
|
63
|
-
It will display one month",
|
|
64
|
-
:icsfile_help => "
|
|
65
|
-
You can create an ics file
|
|
66
|
-
you can view a raw ics file
|
|
67
|
-
Rename ics File
|
|
68
|
-
Delete ics File
|
|
69
|
-
|
|
70
|
-
format of date
|
|
71
|
-
year = 2005
|
|
72
|
-
month = 02
|
|
73
|
-
day = 01
|
|
74
|
-
hour = 01
|
|
75
|
-
minute = 01
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# this code is to list the events that are scheduled
|
|
2
|
-
def listeventdates
|
|
3
|
-
# exception begin
|
|
4
|
-
begin
|
|
5
|
-
fileList = Dir.new($rwdschedule_directory).entries.sort.delete_if { |x| ! (x =~ /sch$/) }
|
|
6
|
-
|
|
7
|
-
@eventrecordsresult = fileList.rwd_method("filleventdatesname")
|
|
8
|
-
rescue
|
|
9
|
-
@eventrecordsresult = "error opening schedule directory"
|
|
10
|
-
end # end of error function
|
|
11
|
-
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
def filleventdatesname(inffile)
|
|
16
|
-
applet = inffile.gsub(/\.sch$/, "")
|
|
17
|
-
@a_viewevent = applet
|
|
18
|
-
|
|
19
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# this code is to list the events that are scheduled
|
|
2
|
-
def listicseventdates
|
|
3
|
-
# exception begin
|
|
4
|
-
begin
|
|
5
|
-
fileList = Dir.new($rwdschedule_directory).entries.sort.delete_if { |x| ! (x =~ /ics$/) }
|
|
6
|
-
|
|
7
|
-
@eventicsrecordsresult = fileList.rwd_method("fillicseventdatesname")
|
|
8
|
-
rescue
|
|
9
|
-
@eventicsrecordsresult = "error opening schedule directory"
|
|
10
|
-
end # end of error function
|
|
11
|
-
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
def fillicseventdatesname(inffile)
|
|
16
|
-
applet = inffile.gsub(/\.ics$/, "")
|
|
17
|
-
@a_viewicsevent = applet
|
|
18
|
-
|
|
19
|
-
end
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# this method loads the on screen variables into the running class
|
|
2
|
-
def loadrwdscheduleconfigurationvariables
|
|
3
|
-
|
|
4
|
-
tmpfilename = RwdScheduleName+"-"+RwdScheduleVersion+".cnf"
|
|
5
|
-
configfiletoload = File.join(ConfigurationDir, tmpfilename )
|
|
6
|
-
begin
|
|
7
|
-
load configfiletoload
|
|
8
|
-
@extraschconfigdatadisplay = ""
|
|
9
|
-
@newschconfigurationresult = "Config Variables loaded"
|
|
10
|
-
rescue
|
|
11
|
-
@extraschconfigdatadisplay = ""
|
|
12
|
-
@newschconfigurationresult = "loading error"
|
|
13
|
-
end
|
|
14
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# this method views an existing record
|
|
2
|
-
def loadeventrecord
|
|
3
|
-
|
|
4
|
-
require 'fileutils'
|
|
5
|
-
@a_eventfilename = $currenteventtext
|
|
6
|
-
|
|
7
|
-
begin # exception trapped block
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
fileName = $rwdschedule_directory + "/" + $currenteventtext + ".sch"
|
|
11
|
-
|
|
12
|
-
fd = File.open(fileName,"r")
|
|
13
|
-
eventdatetime = fd.readline.chomp
|
|
14
|
-
|
|
15
|
-
@a_eventyear = eventdatetime.slice(0..3)
|
|
16
|
-
@a_eventmonth = eventdatetime.slice(4..5)
|
|
17
|
-
@a_eventday = eventdatetime.slice(6..7)
|
|
18
|
-
@a_eventbeginhour = eventdatetime.slice(9..10)
|
|
19
|
-
@a_eventbeginminute = eventdatetime.slice(11..12)
|
|
20
|
-
eventdatetime2 = fd.readline.chomp
|
|
21
|
-
|
|
22
|
-
@a_eventendhour = eventdatetime2.slice(9..10)
|
|
23
|
-
@a_eventendminute = eventdatetime.slice(11..12)
|
|
24
|
-
@a_eventsummary = fd.readline.chomp
|
|
25
|
-
@a_eventdescription = fd.readline.chomp
|
|
26
|
-
@a_eventlocation = fd.readline.chomp
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
while ! fd.eof?
|
|
31
|
-
@extraeventdatadisplay = fd.readline
|
|
32
|
-
end
|
|
33
|
-
fd.close
|
|
34
|
-
rescue SystemCallError, StandardError
|
|
35
|
-
$stderr.print "system call error: " + $!
|
|
36
|
-
end # exception rescue
|
|
37
|
-
|
|
38
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# this method views an existing address record
|
|
2
|
-
def loadicseventrecord
|
|
3
|
-
|
|
4
|
-
require 'fileutils'
|
|
5
|
-
@a_eventfilename = $currenteventtext
|
|
6
|
-
|
|
7
|
-
begin # exception trapped block
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
fileName = $rwdschedule_directory + "/" + $currenteventtext + ".sch"
|
|
11
|
-
|
|
12
|
-
fd = File.open(fileName,"r")
|
|
13
|
-
@a_eventtime = fd.readline.chomp
|
|
14
|
-
@a_eventwhat = fd.readline.chomp
|
|
15
|
-
@a_eventaddress = fd.readline.chomp
|
|
16
|
-
@a_eventphone = fd.readline.chomp
|
|
17
|
-
@a_eventemail = fd.readline.chomp
|
|
18
|
-
@a_eventcomment1 = fd.readline.chomp
|
|
19
|
-
@a_eventcomment2 =fd.readline.chomp
|
|
20
|
-
@a_eventcomment3 = fd.readline.chomp
|
|
21
|
-
|
|
22
|
-
while ! fd.eof?
|
|
23
|
-
@extraeventdatadisplay = fd.readline
|
|
24
|
-
end
|
|
25
|
-
fd.close
|
|
26
|
-
rescue SystemCallError, StandardError
|
|
27
|
-
$stderr.print "system call error: " + $!
|
|
28
|
-
end # exception rescue
|
|
29
|
-
|
|
30
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# this code is to call the help window
|
|
2
|
-
def runhelpwindowrwdschedule
|
|
3
|
-
|
|
4
|
-
$help_topic = "rwdschedule_generalhelp"
|
|
5
|
-
if @rwd_tab == "Vieweventlist"
|
|
6
|
-
$help_topic = "rwdschedulefilelist_generalhelp"
|
|
7
|
-
end
|
|
8
|
-
if @rwd_tab == "editeventrecordfile"
|
|
9
|
-
$help_topic = "rwdschedule_generalhelp"
|
|
10
|
-
end
|
|
11
|
-
if @rwd_tab == "eventutilitiesrwdschedule"
|
|
12
|
-
$help_topic = "eventutilities_help"
|
|
13
|
-
end
|
|
14
|
-
if @rwd_tab == "viewrwdscheduleconfiguration"
|
|
15
|
-
$help_topic = "rwdschedule_configuration"
|
|
16
|
-
end
|
|
17
|
-
if @rwd_tab == "rwdschedulesynctasks"
|
|
18
|
-
$help_topic = "rwdschedule_sync"
|
|
19
|
-
end
|
|
20
|
-
if @rwd_tab == "calendar"
|
|
21
|
-
$help_topic = "calendar_help"
|
|
22
|
-
end
|
|
23
|
-
if @rwd_tab == "createicsrecordfile"
|
|
24
|
-
$help_topic = "icsfile_help"
|
|
25
|
-
end
|
|
26
|
-
if @rwd_tab == "eventicsutilities"
|
|
27
|
-
$help_topic = "icsfile_help"
|
|
28
|
-
end
|
|
29
|
-
if @rwd_tab == "Viewicseventlist"
|
|
30
|
-
$help_topic = "icsfile_help"
|
|
31
|
-
end
|
|
32
|
-
$helptopicsarray = $helptopicsarray | ["icsfile_help","eventutilities_help","calendar_help","rwdschedule_generalhelp","rwdschedule_configuration","rwdschedulefilelist_generalhelp","rwdschedule_sync"]
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if @rwd_window != "rwdtinkerhelpwindow"
|
|
37
|
-
$previouswindow = @rwd_window
|
|
38
|
-
$previoustab = @rwd_tab
|
|
39
|
-
end
|
|
40
|
-
runhelpwindow
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# this code is to change the contact name
|
|
2
|
-
def changeeventdata
|
|
3
|
-
oldName = $rwdschedule_directory + "/" + @a_viewevent + ".sch"
|
|
4
|
-
newName = $rwdschedule_directory + "/" + @a_changeeventdata + ".sch"
|
|
5
|
-
begin
|
|
6
|
-
File.rename(oldName, newName)
|
|
7
|
-
@eventfilechangeresult = "File Renamed!"
|
|
8
|
-
rescue
|
|
9
|
-
@eventfilechangeresult = "rename error"
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# this code is to change the file name
|
|
2
|
-
def changeicseventdata
|
|
3
|
-
if ! @a_viewicsevent.empty?
|
|
4
|
-
oldName = $rwdschedule_directory + "/" + @a_viewicsevent + ".ics"
|
|
5
|
-
if ! @a_changeicseventdata.empty?
|
|
6
|
-
newName = $rwdschedule_directory + "/" + @a_changeicseventdata + ".ics"
|
|
7
|
-
begin
|
|
8
|
-
File.rename(oldName, newName)
|
|
9
|
-
@eventicsfilechangeresult = "File Renamed!"
|
|
10
|
-
rescue
|
|
11
|
-
@eventicsfilechangeresult = "rename error"
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Application rwdtinker orginally (c) 2004 Steven Gibson under GPL.
|
|
2
|
-
#
|
|
3
|
-
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
|
4
|
-
|
|
5
|
-
# call the window
|
|
6
|
-
def returntomainrwdschedule
|
|
7
|
-
@rwd_window = "rwdschedulewindow"
|
|
8
|
-
@rwd_tab = "rwdscheduleselectiontab"
|
|
9
|
-
end
|
|
10
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
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 runrwdscheduleicsbackwindow
|
|
7
|
-
@rwd_window = "rwdscheduleicswindow"
|
|
8
|
-
@rwd_tab = "Viewicseventlist"
|
|
9
|
-
end
|
|
10
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
|
2
|
-
#
|
|
3
|
-
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
|
4
|
-
|
|
5
|
-
# call the window
|
|
6
|
-
def runrwdschedulemenu1
|
|
7
|
-
@rwd_window = "rwdschedulewindow"
|
|
8
|
-
@rwd_tab = "Vieweventlist"
|
|
9
|
-
end
|
|
10
|
-
def runrwdschedulemenu2
|
|
11
|
-
@rwd_window = "rwdschedulewindow"
|
|
12
|
-
@rwd_tab = "editeventrecordfile"
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def runrwdschedulemenu3
|
|
17
|
-
@rwd_window = "rwdschedulewindow"
|
|
18
|
-
@rwd_tab = "eventutilitiesrwdschedule"
|
|
19
|
-
end
|
|
20
|
-
def runrwdschedulemenu4
|
|
21
|
-
@rwd_window = "rwdschedulesyncwindow"
|
|
22
|
-
@rwd_tab = "rwdschedulesynctasks"
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
def runrwdschedulemenu10
|
|
26
|
-
@rwd_window = "rwdschedulesyncwindow"
|
|
27
|
-
@rwd_tab = "viewrwdscheduleconfiguration"
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
def runrwdschedulemenu11
|
|
31
|
-
@rwd_window = "main"
|
|
32
|
-
@rwd_tab = "documentsrwdtinkerone"
|
|
33
|
-
end
|
|
34
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
10
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# this method adds a new address record
|
|
2
|
-
def saverwdscheduleconfiguration
|
|
3
|
-
require 'fileutils'
|
|
4
|
-
|
|
5
|
-
newname = RwdScheduleName+"-"+RwdScheduleVersion+".cnf" # grab the filename to create
|
|
6
|
-
newdata =@a_schconfigurationfile
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
begin # exception trapped block
|
|
10
|
-
fileName = File.join( ConfigurationDir, newname )
|
|
11
|
-
fd = File.open(fileName,"w")
|
|
12
|
-
fd.print(newdata) # save the record info to the file
|
|
13
|
-
fd.close
|
|
14
|
-
@newconfigurationresult=newdata # show the record info in the browser
|
|
15
|
-
rescue SystemCallError, StandardError
|
|
16
|
-
$stderr.print "system call error: " + $!
|
|
17
|
-
end # exception rescue
|
|
18
|
-
|
|
19
|
-
end
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# this method adds a new 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_eventyear.to_s + @a_eventmonth.to_s + @a_eventday.to_s + "T" + @a_eventbeginhour.to_s + @a_eventbeginminute.to_s + "00"
|
|
7
|
-
newdata = newdata + "\n" + @a_eventyear.to_s + @a_eventmonth.to_s + @a_eventday.to_s + "T" + @a_eventendhour.to_s + @a_eventendminute.to_s + "00"
|
|
8
|
-
newdata = newdata +"\n" + @a_eventsummary.to_s + "\n" + @a_eventdescription.to_s + "\n" + @a_eventlocation.to_s
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
fullnewname = newname + ".sch"
|
|
15
|
-
begin # exception trapped block
|
|
16
|
-
fileName = File.join( $rwdschedule_directory, fullnewname )
|
|
17
|
-
fd = File.open(fileName,"w")
|
|
18
|
-
fd.print(newdata) # save the record info to the file
|
|
19
|
-
fd.close
|
|
20
|
-
@neweventresult=newdata # show the record info in the browser
|
|
21
|
-
rescue SystemCallError, StandardError
|
|
22
|
-
$stderr.print "system call error: " + $!
|
|
23
|
-
end # exception rescue
|
|
24
|
-
end
|
|
25
|
-
end
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# this method adds a new record
|
|
2
|
-
def saveicseventrecord
|
|
3
|
-
Dir.chdir($progdir)
|
|
4
|
-
require 'fileutils'
|
|
5
|
-
require 'extras/icalendar'
|
|
6
|
-
if ! @a_eventicsfilename.empty?
|
|
7
|
-
newname = "%s" % [@a_eventicsfilename] # grab the new filename to create
|
|
8
|
-
|
|
9
|
-
fullnewname = newname + ".ics"
|
|
10
|
-
cal = Icalendar::Calendar.new
|
|
11
|
-
|
|
12
|
-
cal.version = "3.2"
|
|
13
|
-
cal.prodid = "rwdtinker-prodid"
|
|
14
|
-
event = Icalendar::Event.new
|
|
15
|
-
newdataText = ""
|
|
16
|
-
if ! @a_eventicsyear.empty?
|
|
17
|
-
temptimedata = @a_eventicsyear.to_s.strip
|
|
18
|
-
else
|
|
19
|
-
temptimedata = "0000"
|
|
20
|
-
end
|
|
21
|
-
if ! @a_eventicsmonth.empty?
|
|
22
|
-
temptimedata= temptimedata + @a_eventicsmonth.to_s
|
|
23
|
-
else
|
|
24
|
-
temptimedata = temptimedata + "00"
|
|
25
|
-
end
|
|
26
|
-
if ! @a_eventicsday.empty?
|
|
27
|
-
temptimedata = temptimedata + @a_eventicsday.to_s
|
|
28
|
-
else
|
|
29
|
-
temptimedata = temptimedata + "00"
|
|
30
|
-
end
|
|
31
|
-
daydate = temptimedata
|
|
32
|
-
if ! @a_eventicshour.empty?
|
|
33
|
-
temptimedata= temptimedata + "T" + @a_eventicshour.to_s
|
|
34
|
-
else
|
|
35
|
-
temptimedata = temptimedata + "T" + "00"
|
|
36
|
-
end
|
|
37
|
-
if ! @a_eventicsminute.empty?
|
|
38
|
-
temptimedata = temptimedata + @a_eventicsminute.to_s
|
|
39
|
-
else
|
|
40
|
-
temptimedata = temptimedata + "00"
|
|
41
|
-
end
|
|
42
|
-
if ! @a_eventendicshour.empty?
|
|
43
|
-
tempendtimedata= daydate + "T" + @a_eventendicshour.to_s
|
|
44
|
-
else
|
|
45
|
-
tempendtimedata = daydate + "T" + "00"
|
|
46
|
-
end
|
|
47
|
-
if ! @a_eventendicsminute.empty?
|
|
48
|
-
tempendtimedata = tempendtimedata + @a_eventendicsminute.to_s
|
|
49
|
-
else
|
|
50
|
-
tempendtimedata = tempendtimedata + "00"
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
if ! @a_eventicssummary.empty?
|
|
54
|
-
summarydataText = @a_eventicssummary.to_s
|
|
55
|
-
else
|
|
56
|
-
summarydataText = ""
|
|
57
|
-
end
|
|
58
|
-
if ! @a_eventicsdescription.empty?
|
|
59
|
-
descriptiondataText = @a_eventicsdescription.to_s
|
|
60
|
-
else
|
|
61
|
-
descriptiondataText = ""
|
|
62
|
-
end
|
|
63
|
-
if ! @a_eventicslocation.empty?
|
|
64
|
-
locationdataText = @a_eventicslocation.to_s
|
|
65
|
-
else
|
|
66
|
-
locationdataText = ""
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
starttime = temptimedata + "00"
|
|
70
|
-
|
|
71
|
-
endtime = tempendtimedata + "00"
|
|
72
|
-
|
|
73
|
-
# Create a new event and add it to the calendar
|
|
74
|
-
|
|
75
|
-
event.dtstart = starttime
|
|
76
|
-
event.dtend = endtime
|
|
77
|
-
event.summary = summarydataText
|
|
78
|
-
event.description = descriptiondataText
|
|
79
|
-
event.location = locationdataText
|
|
80
|
-
cal.add(event)
|
|
81
|
-
# Now generate the string and then parse it so we can verify
|
|
82
|
-
# that everything was set, generated and parsed correctly.
|
|
83
|
-
calString = cal.to_s
|
|
84
|
-
p calString
|
|
85
|
-
#cals = Icalendar::CalendarParser.new(calString).parse
|
|
86
|
-
|
|
87
|
-
# cal2 = cals.first
|
|
88
|
-
begin # exception trapped block
|
|
89
|
-
fileName = File.join( $rwdschedule_directory, fullnewname )
|
|
90
|
-
fd = File.open(fileName,"w")
|
|
91
|
-
fd.print( calString ) # save the record info to the file
|
|
92
|
-
fd.close
|
|
93
|
-
@newicseventresult= calString # show the record info in the browser
|
|
94
|
-
rescue SystemCallError, StandardError
|
|
95
|
-
$stderr.print "system call error: " + $!
|
|
96
|
-
end # exception rescue
|
|
97
|
-
end
|
|
98
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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
|