rwdschedule 0.95 → 0.96
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +216 -364
- data/code/superant.com.schedule/exporticseventrecord.rb +97 -0
- data/code/superant.com.schedule/saveeventrecord.rb +1 -1
- data/code/superant.com.schedule/saveicseventrecord.rb +19 -6
- data/configuration/rwdscheduleversion.cnf +1 -1
- data/gui/frontwindow0/superant.com.rwdschedules/gl6editrecord.rwd +3 -3
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/40editrecord.rwd +6 -1
- data/rwd_files/HowTo_Schedule.txt +4 -0
- data/rwdschedule-0.96.gem +0 -0
- data/schedules/200502february20.ics +11 -0
- data/schedules/200502february26.ics +11 -0
- metadata +6 -4
- data/schedules/200501january23CharlotteB-Day.sch +0 -8
- data/schedules/200501january24jazzfuller.sch +0 -8
data/Readme.txt
CHANGED
@@ -1,364 +1,216 @@
|
|
1
|
-
=
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
==
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
* Erik, for creating RubyWebDialogs.
|
218
|
-
* Charlotte, my wife for coming up for the name Tinker.
|
219
|
-
|
220
|
-
== License
|
221
|
-
|
222
|
-
rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
|
223
|
-
under the terms of the GPL licence:
|
224
|
-
|
225
|
-
== Contact
|
226
|
-
For more information see:
|
227
|
-
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
228
|
-
|
229
|
-
|
230
|
-
For more information about RubyWebDialogs see:
|
231
|
-
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
232
|
-
|
233
|
-
Thanks, Steven Gibson
|
234
|
-
|
235
|
-
== Changelog
|
236
|
-
version 1.50
|
237
|
-
changed unzip applet to be internal code - no exec to unzip program
|
238
|
-
changed order of tabs on back window - list applets now first
|
239
|
-
added rwdwcalc applet in to zips directory
|
240
|
-
changed width of text fields with help from RubyWebDialogs author
|
241
|
-
|
242
|
-
version 1.49
|
243
|
-
added demon function for remote queries
|
244
|
-
startup application on first available port
|
245
|
-
|
246
|
-
version 1.48
|
247
|
-
fix in context sensitive help so that applets can use it better
|
248
|
-
|
249
|
-
version 1.47
|
250
|
-
change to context sensitive help
|
251
|
-
|
252
|
-
version 1.46
|
253
|
-
more work on context help
|
254
|
-
window calls point to tab as well as windows
|
255
|
-
help added help buttons on Document, Selection, View Applet, tabs
|
256
|
-
|
257
|
-
version 1.45
|
258
|
-
first steps toward context sensitive help
|
259
|
-
added help button on main window/tab
|
260
|
-
|
261
|
-
version 1.44
|
262
|
-
updated directory structure - refactored gui files
|
263
|
-
Changed gui directory names - more like Java package titles
|
264
|
-
|
265
|
-
version 1.43
|
266
|
-
changed setup variables file for live changes
|
267
|
-
added editing and reloading of config file
|
268
|
-
added unzip filename to config file
|
269
|
-
|
270
|
-
version 1.42
|
271
|
-
update for live update system
|
272
|
-
update applets for live update
|
273
|
-
code file name cleanup
|
274
|
-
|
275
|
-
version 1.41
|
276
|
-
l10n work es,nl, jp
|
277
|
-
separated out languge.cnf
|
278
|
-
added zip applets refreshacpi, rwdcalc
|
279
|
-
|
280
|
-
version 1.40
|
281
|
-
removed extra lines from init.rb
|
282
|
-
fixed help second window
|
283
|
-
added some tranlations for Spanish
|
284
|
-
More work on l10n
|
285
|
-
|
286
|
-
version 1.3
|
287
|
-
refactored gui files to do easier i10n
|
288
|
-
removed lang directories under gui
|
289
|
-
added lang files under lang dir
|
290
|
-
removed redundant code files left from moving applet handling to back window
|
291
|
-
removed zipped applets not yet refactored
|
292
|
-
|
293
|
-
version 1.24
|
294
|
-
added internet usage instructions to HowTo_Tinker.txt
|
295
|
-
removed HowTo_Tinker.html
|
296
|
-
added panels for Helpabout
|
297
|
-
changed photo logo tab to only have embedded picture, no button
|
298
|
-
|
299
|
-
version 1.23
|
300
|
-
moving diagnostic tab and applet handling tabs to second window
|
301
|
-
added selection panel tab to choose secondary windows.
|
302
|
-
|
303
|
-
version 1.21
|
304
|
-
changing version on help screen to be button
|
305
|
-
added version window
|
306
|
-
added diagnostic tab
|
307
|
-
|
308
|
-
version 1.2
|
309
|
-
added gemspec for creating a rwdtinker.gem
|
310
|
-
added rdoc comments
|
311
|
-
changed order on remove applets tab
|
312
|
-
|
313
|
-
version 1.1
|
314
|
-
changed order of elements on install applet tab
|
315
|
-
Add more i81n ablility - added lang directorys for language hash files
|
316
|
-
added in test file using WATIR stands for "Web Application Testing In Ruby,
|
317
|
-
|
318
|
-
version 1.0
|
319
|
-
Improved name selection in zips and applet screens
|
320
|
-
added rubyslippers applet and rwdrefreshacpi applets as zips
|
321
|
-
|
322
|
-
version 0.9
|
323
|
-
Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
|
324
|
-
updated RubyWebDialogs for people who do not have it installed
|
325
|
-
added rwdschedule applet as zip file
|
326
|
-
|
327
|
-
version 0.8
|
328
|
-
changed location of code files
|
329
|
-
only directory of code files needs to be added to inf file
|
330
|
-
changed location of gui files
|
331
|
-
only directory of gui files needs to be added to inf file
|
332
|
-
Added constants in conf file for code location and gui location
|
333
|
-
removed all zips not yt updated to new directory layout
|
334
|
-
change loading of conf files to not need intermediate file
|
335
|
-
and favicon.ico
|
336
|
-
|
337
|
-
version 0.7
|
338
|
-
moved changelog to HowTo_Tinker.html
|
339
|
-
copied english gui text to the dirs I think we should translate to
|
340
|
-
update backup zip files to newest versions
|
341
|
-
upgraded the ev directory - for those who don't have RubyWebDialogs
|
342
|
-
|
343
|
-
version 0.6
|
344
|
-
updated version number
|
345
|
-
changed merge name to rwdtinker.rb
|
346
|
-
|
347
|
-
version 0.4
|
348
|
-
added zip listing and installing - Linux only
|
349
|
-
|
350
|
-
Version 0,3
|
351
|
-
changed name to Tinker
|
352
|
-
|
353
|
-
Version 0.2
|
354
|
-
added some i18n directories for the gui files
|
355
|
-
|
356
|
-
Version 0.1
|
357
|
-
first public version released
|
358
|
-
includes document screen
|
359
|
-
Open Photo screen
|
360
|
-
included configuration directory
|
361
|
-
zips directories
|
362
|
-
installed directory
|
363
|
-
installed applet lister
|
364
|
-
|
1
|
+
= rwdschedule - for rwdtinker and RubyWebDialogs
|
2
|
+
|
3
|
+
rwdschedule is a simple little database
|
4
|
+
|
5
|
+
The GUI interface used is RubyWebDialogs
|
6
|
+
|
7
|
+
RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
|
8
|
+
|
9
|
+
== Quick Start
|
10
|
+
Start the program by typing
|
11
|
+
ruby init.rb
|
12
|
+
|
13
|
+
Then point your web browser to:
|
14
|
+
http://localhost:7705/
|
15
|
+
|
16
|
+
Then enter the event date you want to search for in the browser form and press Search.
|
17
|
+
200412december1a
|
18
|
+
browser should fill with the event information.
|
19
|
+
To exit, press the x inside the browser window.
|
20
|
+
|
21
|
+
|
22
|
+
== How to Use the Schedule Book (rwdschedule)
|
23
|
+
|
24
|
+
There are two ways to add records to schedule book.
|
25
|
+
|
26
|
+
== Adding Records
|
27
|
+
|
28
|
+
1. Use the "Edit Event" tab
|
29
|
+
The first field is the most important. It is the filename that
|
30
|
+
will be created. I use the event date starting with yearmonthday
|
31
|
+
2005january11
|
32
|
+
|
33
|
+
The following lines for entry are for you to fill in as you want.
|
34
|
+
When you are finished press the Save Changes button
|
35
|
+
|
36
|
+
You use this same screen for editing an already saved event
|
37
|
+
|
38
|
+
2. Manually add an entry for a event record
|
39
|
+
You can use a text editor to create a record
|
40
|
+
put information on separate lines. You can have as many lines as you want
|
41
|
+
name the file with starting with date and end with .nam
|
42
|
+
2005january11 6 pm dinner party.nam
|
43
|
+
|
44
|
+
Save your file to the schedules/ subdirectory
|
45
|
+
|
46
|
+
|
47
|
+
== Viewing an schedule book entry:
|
48
|
+
|
49
|
+
|
50
|
+
Go to "View event" tab
|
51
|
+
|
52
|
+
Click on the list events button.
|
53
|
+
|
54
|
+
Click on the date you want
|
55
|
+
|
56
|
+
Then click the "Open" button
|
57
|
+
|
58
|
+
If it finds the record it will open it. It displays the record
|
59
|
+
as text under the "Open" button.
|
60
|
+
|
61
|
+
|
62
|
+
== Event Utilities
|
63
|
+
|
64
|
+
Click on "Event Utilites" tab
|
65
|
+
|
66
|
+
You can rename event filenames
|
67
|
+
You can delete events
|
68
|
+
|
69
|
+
== Sync for multiple computers
|
70
|
+
|
71
|
+
If you are like me, you have more than one system
|
72
|
+
I use rwdTinker at home on my Linux laptop
|
73
|
+
at work I use it on XP
|
74
|
+
on the go I use rwdtinker on my Zaurus PDA
|
75
|
+
So I am adding schedule events on different machines.
|
76
|
+
There is a function to help sync the separate systems
|
77
|
+
|
78
|
+
in "Selection Panel" click on "Open Schedule Sync Window"
|
79
|
+
|
80
|
+
First you need your ftp details set in the
|
81
|
+
configuration/rwdschedule.cnf file
|
82
|
+
|
83
|
+
you can upload your events from your local schedules directory to the ftp site
|
84
|
+
you can download events from the ftp site to your local updates directory
|
85
|
+
you can perform a sync which finds remote events and adds them to your local
|
86
|
+
schedules directory
|
87
|
+
|
88
|
+
There is a button to delete the update directory when finished
|
89
|
+
|
90
|
+
== Show Month
|
91
|
+
|
92
|
+
Click on "Show Month" tab
|
93
|
+
enter
|
94
|
+
Year: 2005
|
95
|
+
Month: 1
|
96
|
+
Click on show month
|
97
|
+
|
98
|
+
It will display one month
|
99
|
+
|
100
|
+
== ics files
|
101
|
+
|
102
|
+
You can create an ics file
|
103
|
+
you can view a raw ics file
|
104
|
+
Rename ics File
|
105
|
+
Delete ics File
|
106
|
+
|
107
|
+
== Using over a Network
|
108
|
+
|
109
|
+
To serve the application over your local LAN,change the last line in the
|
110
|
+
init.rb file to something like:
|
111
|
+
RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
|
112
|
+
Then you should be able to login at: http://yourhostname:8080
|
113
|
+
|
114
|
+
You have to authorize yourself. The .rwuids example is a string with
|
115
|
+
the name of the authorization file, relative to the home directory
|
116
|
+
of the user that started the service. This file has to be in the form of:
|
117
|
+
|
118
|
+
user1 = password
|
119
|
+
user2 = pass phrase
|
120
|
+
|
121
|
+
Thus the file .rwduids might contain:
|
122
|
+
|
123
|
+
erik = secret
|
124
|
+
|
125
|
+
== Requirements:
|
126
|
+
RubyWebDialogs - I am using 0.0.11 2004-3-9
|
127
|
+
|
128
|
+
Ruby I am using version 1.8.2
|
129
|
+
|
130
|
+
|
131
|
+
I have tested this under Linux-Debian kernel 2.6.9
|
132
|
+
|
133
|
+
== PROBLEMS:
|
134
|
+
It is easy to type a date with a space after it. That will have a somewhat invisible space
|
135
|
+
in it.
|
136
|
+
|
137
|
+
don't type in the extension .sch
|
138
|
+
|
139
|
+
Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
|
140
|
+
|
141
|
+
Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
|
142
|
+
|
143
|
+
|
144
|
+
== contacts
|
145
|
+
For more information see:
|
146
|
+
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
147
|
+
|
148
|
+
|
149
|
+
For more information about RubyWebDialogs see:
|
150
|
+
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
151
|
+
|
152
|
+
|
153
|
+
Steven Gibson
|
154
|
+
steven@superant.com
|
155
|
+
|
156
|
+
== Changelog
|
157
|
+
version 0.96
|
158
|
+
added export ics record
|
159
|
+
added end time for ics create record
|
160
|
+
|
161
|
+
version 0.95
|
162
|
+
added ics file view tab
|
163
|
+
added ics file creation tab
|
164
|
+
ics file rename and deletion tab
|
165
|
+
reorganized schedule edit screen for future isc output
|
166
|
+
corrected typo on menu tab
|
167
|
+
|
168
|
+
version 0.94
|
169
|
+
added RwdSchedule Menu tab for easier navigation
|
170
|
+
wider text boxes for contact information
|
171
|
+
Improvement to context sensitive help
|
172
|
+
updated for rwdtinker 1.51 - finds available port and remote control
|
173
|
+
|
174
|
+
version 0.93
|
175
|
+
added some context sensitive help
|
176
|
+
added edit config file and reload config variables
|
177
|
+
change to tinker context help script
|
178
|
+
updated for rwdtinker 1.47
|
179
|
+
factored month calendar display - should be more readable
|
180
|
+
fixed l10n calls for calendar for Dutch
|
181
|
+
added archive function for old events
|
182
|
+
|
183
|
+
version 0.92
|
184
|
+
Added delete update files function in sync tab
|
185
|
+
|
186
|
+
version 0.91
|
187
|
+
updated for rwdtinker 1.44 - refactored gui files
|
188
|
+
Changed gui directory names - more like Java package titles
|
189
|
+
|
190
|
+
version 0.9
|
191
|
+
added back window for sync tasks
|
192
|
+
added configuration viewing
|
193
|
+
added ftp file download for sync
|
194
|
+
added ftp file upload for sync
|
195
|
+
add update files and schedule sync compares
|
196
|
+
|
197
|
+
version 0.8
|
198
|
+
updated for rwdtinker 1.42 - semi-live updates
|
199
|
+
|
200
|
+
version 0.7
|
201
|
+
updated for rwdtinker 1.4
|
202
|
+
addition to documentation
|
203
|
+
|
204
|
+
version 0.6
|
205
|
+
updated for rwdtinker 1.3
|
206
|
+
|
207
|
+
version 0.5
|
208
|
+
added edit commands to change event record
|
209
|
+
Rename event
|
210
|
+
Delete event
|
211
|
+
changed order of event list - descending = oldest at top
|
212
|
+
|
213
|
+
version 0.4
|
214
|
+
added configuration file with location of schedules directory
|
215
|
+
add date selection to view event tab
|
216
|
+
updated to version 1.0 of rwdtinker
|
@@ -0,0 +1,97 @@
|
|
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
|
@@ -28,6 +28,7 @@
|
|
28
28
|
else
|
29
29
|
temptimedata = temptimedata + "00"
|
30
30
|
end
|
31
|
+
daydate = temptimedata
|
31
32
|
if ! @a_eventicshour.empty?
|
32
33
|
temptimedata= temptimedata + "T" + @a_eventicshour.to_s
|
33
34
|
else
|
@@ -38,6 +39,17 @@ else
|
|
38
39
|
else
|
39
40
|
temptimedata = temptimedata + "00"
|
40
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
|
+
|
41
53
|
if ! @a_eventicssummary.empty?
|
42
54
|
summarydataText = @a_eventicssummary.to_s
|
43
55
|
else
|
@@ -56,11 +68,12 @@ else
|
|
56
68
|
|
57
69
|
starttime = temptimedata + "00"
|
58
70
|
|
71
|
+
endtime = tempendtimedata + "00"
|
59
72
|
|
60
73
|
# Create a new event and add it to the calendar
|
61
74
|
|
62
75
|
event.dtstart = starttime
|
63
|
-
event.dtend =
|
76
|
+
event.dtend = endtime
|
64
77
|
event.summary = summarydataText
|
65
78
|
event.description = descriptiondataText
|
66
79
|
event.location = locationdataText
|
@@ -72,14 +85,14 @@ else
|
|
72
85
|
#cals = Icalendar::CalendarParser.new(calString).parse
|
73
86
|
|
74
87
|
# cal2 = cals.first
|
75
|
-
|
88
|
+
begin # exception trapped block
|
76
89
|
fileName = File.join( $rwdschedule_directory, fullnewname )
|
77
90
|
fd = File.open(fileName,"w")
|
78
91
|
fd.print( calString ) # save the record info to the file
|
79
92
|
fd.close
|
80
|
-
@
|
81
|
-
|
82
|
-
|
83
|
-
|
93
|
+
@newicseventresult= calString # show the record info in the browser
|
94
|
+
rescue SystemCallError, StandardError
|
95
|
+
$stderr.print "system call error: " + $!
|
96
|
+
end # exception rescue
|
84
97
|
end
|
85
98
|
end
|
@@ -39,9 +39,9 @@ $rwdguivar=
|
|
39
39
|
<row> <p align=\"right\">Summary:</p> <text size=70 name=\"a_eventsummary\"/> </row>
|
40
40
|
<row> <p align=\"right\">Description:</p> <text size=70 name=\"a_eventdescription\"/> </row>
|
41
41
|
<row> <p align=\"right\">Location:</p> <text size=70 name=\"a_eventlocation\"/> </row>
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
<horizontal>
|
43
|
+
<button caption=\"Export ics Record\" action=\"exporteventrecord\"/>
|
44
|
+
</horizontal>
|
45
45
|
</table>
|
46
46
|
<p>%extraeventdatadisplay%</p>
|
47
47
|
<p>
|
@@ -26,7 +26,12 @@ $rwdguivar=
|
|
26
26
|
<horizontal>
|
27
27
|
<p align=\"right\">Begin Hour:</p> <text size=20 name=\"a_eventicshour\"/>
|
28
28
|
<p align=\"right\">Begin Minute:</p> <text size=20 name=\"a_eventicsminute\"/>
|
29
|
-
</horizontal>
|
29
|
+
</horizontal>
|
30
|
+
|
31
|
+
<horizontal>
|
32
|
+
<p align=\"right\">End Hour:</p> <text size=20 name=\"a_eventendicshour\"/>
|
33
|
+
<p align=\"right\">End Minute:</p> <text size=20 name=\"a_eventendicsminute\"/>
|
34
|
+
</horizontal>
|
30
35
|
</table>
|
31
36
|
<table>
|
32
37
|
<row> <p align=\"right\">Summary:</p> <text size=70 name=\"a_eventicssummary\"/> </row>
|
Binary file
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rwdschedule
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date: 2005-02-
|
6
|
+
version: "0.96"
|
7
|
+
date: 2005-02-22
|
8
8
|
summary: rwdschedule is an calendar application using rwdtinker and RubyWebDialogs.
|
9
9
|
require_paths:
|
10
10
|
- "."
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- code/superant.com.schedule/saveicseventrecord.rb
|
90
90
|
- code/superant.com.schedule/deleteicseventrecord.rb
|
91
91
|
- code/superant.com.schedule/renameicseventdata.rb
|
92
|
+
- code/superant.com.schedule/exporticseventrecord.rb
|
92
93
|
- configuration/language.cnf
|
93
94
|
- configuration/rwdapplicationidentity.cnf
|
94
95
|
- configuration/rwdtinker.cnf
|
@@ -103,14 +104,14 @@ files:
|
|
103
104
|
- extras/cal.rb
|
104
105
|
- extras/icalendar
|
105
106
|
- extras/icalendar.rb
|
106
|
-
- schedules/200501january23CharlotteB-Day.sch
|
107
|
-
- schedules/200501january24jazzfuller.sch
|
108
107
|
- schedules/archive
|
109
108
|
- schedules/20050120T09.ics
|
110
109
|
- schedules/Enterprise.ics
|
111
110
|
- schedules/US Holidays.ics
|
112
111
|
- schedules/testics05.ics
|
113
112
|
- schedules/200502february22 test event.sch
|
113
|
+
- schedules/200502february20.ics
|
114
|
+
- schedules/200502february26.ics
|
114
115
|
- updates/200507july04a.sch
|
115
116
|
- ev/browser.rb
|
116
117
|
- ev/ftools.rb
|
@@ -240,6 +241,7 @@ files:
|
|
240
241
|
- tests/totranslate.lang
|
241
242
|
- Readme.txt
|
242
243
|
- init.rb
|
244
|
+
- rwdschedule-0.96.gem
|
243
245
|
test_files: []
|
244
246
|
rdoc_options:
|
245
247
|
- "--main"
|