rwdgutenberg 0.12 → 0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/code/01rwdcore/01rwdcore.rb +6 -6
  2. data/code/01rwdcore/02helptexthashbegin.rb +14 -2
  3. data/code/01rwdcore/03helptexthash.rb +18 -20
  4. data/code/01rwdcore/jumplinkcommand.rb +14 -4
  5. data/code/01rwdcore/openhelpwindow.rb +7 -0
  6. data/code/01rwdcore/runhelpabout.rb +6 -1
  7. data/code/01rwdcore/runtab.rb +15 -0
  8. data/code/01rwdcore/selectiontab.rb +2 -0
  9. data/code/01rwdcore/setuphelpaboutoptions.rb +2 -0
  10. data/code/01rwdcore/setuptinkerdocuments.rb +1 -0
  11. data/code/01rwdcore/test_cases.rb +100 -51
  12. data/code/01rwdcore/test_harness.rb +8 -1
  13. data/code/01rwdcore/uploadreturns.rb +3 -0
  14. data/code/dd0viewphoto/dd0viewphoto.rb +2 -0
  15. data/code/superant.com.gutenberg/0uninstallapplet.rb +2 -0
  16. data/code/superant.com.gutenberg/changegutenbergname.rb +0 -0
  17. data/code/superant.com.gutenberg/clearbookscreendisplay.rb +0 -0
  18. data/code/superant.com.gutenberg/cleargutenbergfiles.rb +0 -0
  19. data/code/superant.com.gutenberg/cleargutrecordfiles.rb +0 -0
  20. data/code/superant.com.gutenberg/copyfilename.rb +0 -0
  21. data/code/superant.com.gutenberg/createnewnote.rb +1 -1
  22. data/code/superant.com.gutenberg/deletegutenbergrecord.rb +0 -0
  23. data/code/superant.com.gutenberg/gutenbergcreatefile.rb +0 -0
  24. data/code/superant.com.gutenberg/helptexthashload.rb +0 -0
  25. data/code/superant.com.gutenberg/listnamerecord.rb +0 -0
  26. data/code/superant.com.gutenberg/listtextfilesgutenberg.rb +0 -0
  27. data/code/superant.com.gutenberg/loadbookrecord.rb +0 -0
  28. data/code/superant.com.gutenberg/loadconfigurationrecord.rb +0 -0
  29. data/code/superant.com.gutenberg/loadconfigurationvariables.rb +0 -0
  30. data/code/superant.com.gutenberg/openhelpwindow.rb +41 -0
  31. data/code/superant.com.gutenberg/runbackwindow.rb +0 -0
  32. data/code/superant.com.gutenberg/rungutenbergwindow.rb +0 -0
  33. data/code/superant.com.gutenberg/rwdgutenbergbackward.rb +0 -0
  34. data/code/superant.com.gutenberg/rwdtinkerversion.rb +0 -0
  35. data/code/superant.com.gutenberg/saveconfigurationrecord.rb +0 -0
  36. data/code/superant.com.gutenberg/savegutenbergrecord.rb +0 -0
  37. data/code/superant.com.library/marcsearch.rb +30 -0
  38. data/code/superant.com.rwdtinkerbackwindow/changelocale.rb +84 -0
  39. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +30 -102
  40. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +2 -0
  41. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +2 -0
  42. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +3 -1
  43. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +4 -0
  44. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +3 -1
  45. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +3 -1
  46. data/code/superant.com.rwdtinkerbackwindow/showlocaleoptions.rb +9 -0
  47. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +1 -0
  48. data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +8 -5
  49. data/code/zz0applicationend/zz0end.rb +2 -1
  50. data/configuration/rwdtinker.dist +3 -2
  51. data/configuration/rwdwgutenberg.dist +3 -3
  52. data/configuration/tinkerwin2variables.dist +4 -8
  53. data/gui/tinkerbackwindows/superant.com.backgutenberg/30booklistutilities.rwd +1 -1
  54. data/gui/tinkerbackwindows/superant.com.backgutenberg/40marctab.rwd +26 -0
  55. data/gui/tinkerbackwindows/superant.com.backgutenberg/67viewconfiguration.rwd +1 -1
  56. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +1 -1
  57. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80localechanger.rwd +17 -0
  58. data/init.rb +53 -156
  59. data/installed/rwdwgutenberg.inf +0 -1
  60. data/lang/en/rwdcore/en.po +197 -0
  61. data/lang/es/rwdcore/es.po +184 -0
  62. data/lang/fr/rwdcore/fr.po +169 -0
  63. data/lang/hi/rwdcore/hi.po +173 -0
  64. data/lang/ja/rwdcore/ja.po +171 -0
  65. data/lang/nl/rwdcore/nl.po +169 -0
  66. data/lib/marc.rb +38 -0
  67. data/lib/marc/constants.rb +14 -0
  68. data/lib/marc/controlfield.rb +47 -0
  69. data/lib/marc/datafield.rb +163 -0
  70. data/lib/marc/dublincore.rb +79 -0
  71. data/lib/marc/exception.rb +9 -0
  72. data/lib/marc/reader.rb +186 -0
  73. data/lib/marc/record.rb +147 -0
  74. data/lib/marc/subfield.rb +31 -0
  75. data/lib/marc/writer.rb +87 -0
  76. data/lib/marc/xmlreader.rb +103 -0
  77. data/lib/marc/xmlwriter.rb +155 -0
  78. data/lib/rwdtinker/rwdcodedir.rb +56 -0
  79. data/lib/rwdtinker/rwdguidir.rb +57 -0
  80. data/lib/rwdtinker/rwdlangdir.rb +60 -0
  81. data/lib/rwdtinker/rwdtinkertools.rb +2 -1
  82. data/lib/zip/ioextras.rb +43 -2
  83. data/lib/zip/stdrubyext.rb +5 -5
  84. data/lib/zip/tempfile_bugfixed.rb +2 -2
  85. data/lib/zip/zip.rb +618 -149
  86. data/lib/zip/zipfilesystem.rb +59 -8
  87. data/lib/zip/ziprequire.rb +32 -3
  88. data/lib/zmarc.rb +140 -0
  89. data/lib/zoom.so +0 -0
  90. data/rwd_files/HowTo_Gutenberg.txt +8 -1
  91. data/rwd_files/HowTo_Tinker.txt +29 -6
  92. data/rwd_files/Tinkerhelptexthash.txt +84 -0
  93. data/rwd_files/log/rwdtinker.log +0 -2080
  94. data/rwd_files/rwdapplications.html +23 -1
  95. data/rwd_files/rwdgutenberghelpfiles.txt +11 -4
  96. data/rwdconfig.dist +4 -2
  97. data/tests/makedist-rwdwgutenberg.rb +1 -1
  98. data/tests/makedist.rb +1 -1
  99. data/zips/rwdwfoldeditor-0.07.zip +0 -0
  100. data/zips/{rwdwgutenberg-0.12.zip → rwdwgutenberg-0.13.zip} +0 -0
  101. data/zips/rwdwhypernote-0.16.zip +0 -0
  102. data/zips/rwdwmovies-0.98.zip +0 -0
  103. data/zips/tinkerbellw-0.04.zip +0 -0
  104. data/zips/{wrubyslippers-1.07.zip → wrubyslippers-1.08.zip} +0 -0
  105. metadata +39 -14
  106. data/code/01rwdcore/04helptextend.rb +0 -6
  107. data/code/superant.com.gutenberg/openhelpwindowgutenberg.rb +0 -35
  108. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -61
  109. data/lang/en/rwdcore/languagefile.rb +0 -59
  110. data/lang/es/rwdcore/languagefile-es.rb +0 -63
  111. data/lang/fr/rwdcore/languagefile.rb +0 -65
  112. data/lang/jp/rwdcore/languagefile.rb +0 -73
  113. data/lang/nl/rwdcore/languagefile.rb +0 -76
  114. data/rwdgutenberg.rb +0 -1
  115. data/zips/rwdwfoldeditor-0.05.zip +0 -0
@@ -0,0 +1,41 @@
1
+ # this code is to call the help window
2
+ def runhelpwindowrwdgutenberg
3
+
4
+ $help_topic = "rwdgutenberg_generalhelp"
5
+ $helptopicsarray = $helptopicsarray << "rwdgutenberg_generalhelp"
6
+
7
+ if @rwd_tab == "superantcomgutenbergfile"
8
+ $help_topic = "gutenbergedit_help"
9
+
10
+ $helptopicsarray = $helptopicsarray << "gutenbergedit_help"
11
+ end
12
+
13
+ if @rwd_tab == "rwdgutenberglistfiles"
14
+ $help_topic = "gutenlist_help"
15
+ $helptopicsarray = $helptopicsarray << "gutenlist_help"
16
+ end
17
+
18
+ if @rwd_tab == "gutendisplaytexttab"
19
+ $help_topic = "gutenbergtextdisplay_help"
20
+ $helptopicsarray = $helptopicsarray << "gutenbergtextdisplay_help"
21
+ end
22
+
23
+
24
+ helpsearchterm = @rwd_tab + "_help"
25
+
26
+
27
+ if Helptext.has_key? helpsearchterm.intern
28
+ $help_topic = helpsearchterm
29
+ if ! $helptopicsarray.include?( helpsearchterm)
30
+ $helptopicsarray << helpsearchterm
31
+ end
32
+ end
33
+
34
+ if @rwd_window != "rwdtinkerhelpwindow"
35
+ $previouswindow = @rwd_window
36
+ $previoustab = @rwd_tab
37
+ end
38
+ runhelpwindow
39
+ end
40
+
41
+
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,30 @@
1
+ #
2
+
3
+ # Now the real business. Loop through all the servers listed above
4
+ # and query it about the ISBN until one answers or we run out of servers
5
+ def marcsearch
6
+ require 'stringio'
7
+ #isbn = '0060932767'
8
+ if @a_viewrwdsagisbn.empty?
9
+ @a_gutenbergmarcdata = "need to enter isbn number"
10
+ else
11
+ @@marcisbn = @a_viewrwdsagisbn
12
+ isbn = @@marcisbn.gsub(/[^0-9X]/, '')
13
+
14
+ if (! /(978)*\d{9}[0-9X]/.match(isbn))
15
+ $stderr.puts "This is not a valid ISBN" # Not a true validity check!
16
+ return
17
+ end
18
+ zmarclocation = File.join("lib", "zmarc.rb")
19
+ #$stderr.puts zmarclocation
20
+ $tmpmarcfilesoutput = ""
21
+
22
+ #this is child process
23
+ zmarcFile = File.open( zmarclocation ,"r")
24
+ tmpzmarc = zmarcFile .read
25
+ eval(tmpzmarc)
26
+ #$stderr.puts $tmpmarcfilesoutput
27
+
28
+ @a_gutenbergmarcdata = $tmpmarcfilesoutput
29
+ end
30
+ end
@@ -0,0 +1,84 @@
1
+
2
+ #***********************************************************************
3
+ #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
+ #* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
5
+ #*
6
+ #* This library is free software; you can redistribute it and/or
7
+ #* modify it under the terms of the GNU General Public
8
+ #* License as published by the Free Software Foundation; either
9
+ #* .
10
+ #*
11
+ #* These files are distributed in the hope that they will be useful,
12
+ #* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ #* General Public License for more details.
15
+ #*
16
+ #* You should have received a copy of the GNU General Public
17
+ #* License along with these files; if not, write to the Free Software
18
+ #* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ #*
20
+ #* For further information please contact the author by e-mail
21
+ #* at "smalllinux@gmail.com".
22
+ #***********************************************************************/
23
+
24
+ def runlocalechangercommand
25
+
26
+ $rwdtinkerlog.info "preparing to restart gui"
27
+
28
+ $lang = @a_localechooseinput # pick the language of choice
29
+
30
+ tempdoc = " "
31
+
32
+ Dir.chdir($progdir) # change back to top program directory
33
+
34
+
35
+ # build the English Language hash file from the parts
36
+
37
+
38
+ require 'lib/rwdtinker/rwdlangdir'
39
+
40
+ tempdoc = " "
41
+ #go get all the po language file files in english
42
+ tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
43
+
44
+ #writes the contents of doc into the languagehashvariable
45
+ languagehashvariable = tempdoc
46
+
47
+ # END of en Lang building
48
+ tempdoc = " "
49
+ Dir.chdir($progdir) # change back to top program directory
50
+
51
+ # build the local Language hash file from the parts
52
+
53
+
54
+
55
+ # Go get all the po files for the language of choice
56
+ tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
57
+ # the contents of doc into the variable
58
+ languagehashvariable = languagehashvariable + tempdoc
59
+
60
+ Dir.chdir($progdir) # change back to top program directory
61
+
62
+ # lets read those po files, first english then the chosen language
63
+ temp = eval( languagehashvariable )
64
+
65
+
66
+
67
+
68
+ # build the actual GUI from the gui parts
69
+ require 'lib/rwdtinker/rwdguidir'
70
+
71
+ tempdoc = RwdtinkerTools.findguifiles(GuiDir)
72
+
73
+
74
+ # gui variable is done
75
+ guiRWD = ""
76
+ $rwd_gui_tinker = tempdoc
77
+
78
+ $rwdtinkerlog.info "restarting gui now"
79
+
80
+ RWDWindow.new($rwd_gui_tinker, @rwd_window).render("DEFAULT")
81
+
82
+ end
83
+
84
+
@@ -1,4 +1,3 @@
1
-
2
1
  #***********************************************************************
3
2
  #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
3
  #* Copyright (c) 2004 - 2005 by Steven Gibson. All Rights Reserved.
@@ -30,8 +29,6 @@ def initiateapplet(nametextlocal)
30
29
 
31
30
  $rwdtinkerlog.info "initiateapplet: starting config load with: #{nametextlocal}"
32
31
 
33
-
34
-
35
32
  Dir.chdir($progdir ) #changes the current working directory
36
33
 
37
34
  @confignew = "configuration/" + "#{nametextlocal}.cnf"
@@ -44,13 +41,10 @@ begin
44
41
 
45
42
  eval configfileload #load config file
46
43
 
47
-
48
-
49
44
  rescue
50
45
 
51
46
  $rwdtinkerlog.error "initiateapplet: error in initiateapplets - config load"
52
47
 
53
-
54
48
  debuginitiate += 1
55
49
  end
56
50
  $tempdoc = " "
@@ -58,80 +52,24 @@ $tempdoc = " "
58
52
  Dir.chdir($progdir) # change back to top program directory
59
53
 
60
54
  # build the English Language hash file from the parts
61
- languagehashvariable = 'Message.update('
62
- startlangdir = File.join(LangDir,"en")
63
- #get a list of the files and subdirectories on the starting directory only
64
- alanghash = Array.new(Dir[startlangdir].entries.sort)
65
- #loop through the list, ignore the files and add all new directories found
66
- alanghash.each do |x|
67
- #if a directory...
68
- if(test(?d,x))
69
- # add to the original list of directories
70
- @@tmproot = x + "/**"
71
- #adds the new ones to the array
72
- blanghash = Dir[@@tmproot].entries.sort
73
- blanghash.each do |x|
74
- if(test(?d,x))
75
- alanghash.push(x) #appends to the end of the array...
76
- end
77
- end
78
- end
79
- end
80
- alanghash.each do |x|
81
- #if it is a file...
82
- if(!test(?d,x))
83
- alanghash.delete(x)
84
- else #it is a directory...
85
- findfiles(x + "/**")
86
- end
87
- end
88
-
55
+ require 'lib/rwdtinker/rwdlangdir'
56
+
57
+ tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
89
58
 
90
59
  #writes the contents of doc into the languagehashvariable
91
-
92
60
 
93
- languagehashvariable = languagehashvariable + $tempdoc + ' :rwdtinker => "Rwdtinker" ) ;'
61
+ languagehashvariable = tempdoc
94
62
 
95
63
  # END of en Lang building
96
64
  $tempdoc = " "
97
65
  Dir.chdir($progdir) # change back to top program directory
98
66
 
99
67
  # build the local Language hash file from the parts
100
- startlangdir = File.join(LangDir,$lang)
101
- #get a list of the files and subdirectories on the starting directory only
102
- alanghash = Array.new(Dir[startlangdir].entries.sort)
103
- #loop through the list, ignore the files and add all new directories found
104
- alanghash.each do |x|
105
- #if a directory...
106
- if(test(?d,x))
107
- # add to the original list of directories
108
- @@tmproot = x + "/**"
109
- #adds the new ones to the array
110
- blanghash = Dir[@@tmproot].entries.sort
111
- blanghash.each do |x|
112
- if(test(?d,x))
113
- alanghash.push(x) #appends to the end of the array...
114
- end
115
- end
116
- end
117
- end
118
- alanghash.each do |x|
119
- #if it is a file...
120
- if(!test(?d,x))
121
- alanghash.delete(x)
122
- else #it is a directory...
123
- findfiles(x + "/**")
124
- end
125
- end
68
+ tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
126
69
 
70
+ #writes the contents of doc into the variable
127
71
 
128
- #writes the contents of doc into the variable
129
-
130
- languagehashvariable = languagehashvariable + " Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
131
-
132
-
133
-
134
- $tempdoc = " "
72
+ languagehashvariable = languagehashvariable + tempdoc
135
73
 
136
74
  Dir.chdir($progdir) # change back to top program directory
137
75
 
@@ -142,44 +80,18 @@ $tempdoc = " "
142
80
  begin # error trap
143
81
 
144
82
  # build the actual GUI from the gui parts
145
- $tempdoc = " "
146
- #get a list of the files and subdirectories on the starting directory only
147
- a = Array.new(Dir[GuiDir].entries.sort)
148
- #loop through the list, ignore the files and add all new directories found
149
- a.each do |x|
150
- #if a directory...
151
- if(test(?d,x))
152
- #use this new dir find to add to the original list of directories
153
- @@root = x + "/**"
154
- #adds the new ones to the array
155
- b = Dir[@@root].entries.sort
156
- b.each do |x|
157
- if(test(?d,x))
158
- a.push(x) #appends to the end of the array...
159
- end
160
- end
161
- end
162
- end
163
- a.each do |x|
164
- #if it is a file...
165
- if(!test(?d,x))
166
- a.delete(x)
167
-
168
- else #it is a directory...
169
- loadguifile(x + "/**")
170
-
171
-
172
- end
173
- end
174
-
175
- $rwd_gui_tinker = $tempdoc
176
-
83
+ tempdoc = " "
84
+
85
+ require 'lib/rwdtinker/rwdguidir'
86
+
87
+ tempdoc = RwdtinkerTools.findguifiles(GuiDir)
88
+
89
+ $rwd_gui_tinker = tempdoc
177
90
 
178
91
  rescue
179
92
  $rwd_gui_tinker = tempguistorage # restore old gui
180
93
 
181
94
  $rwdtinkerlog.error "error in initiateapplets - gui building"
182
-
183
95
 
184
96
  debuginitiate += 1
185
97
  end
@@ -237,5 +149,21 @@ begin # error trap
237
149
  end
238
150
 
239
151
 
152
+ def findfiles(d)
153
+ a = Array.new(Dir[d].entries.sort)
154
+ #loop through and get the files names
155
+ a.each do |x|
156
+ #adjust the filters to the files you want to see...
157
+ if(!test(?d,x))
158
+ # only rwd files
159
+ if x =~ /rb|rwd|txt/
160
+ fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
161
+ $tempdoc+=fileA.read #reads the file into the doc string
162
+ fileA.close
163
+ end
164
+ end
165
+ end
166
+ end
167
+
240
168
 
241
169
 
@@ -1,4 +1,6 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
1
2
  # install rwdtinker applet from a long directory location
3
+
2
4
  def installgemapplet
3
5
  require 'fileutils'
4
6
  require 'lib/zip/zip'
@@ -1,4 +1,6 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
1
2
  # this code is to list the zips
3
+
2
4
  def fillzipappletname(inffile)
3
5
  applet = inffile.gsub(/\.zip$/, "")
4
6
  @a_installapplet = applet
@@ -1,4 +1,6 @@
1
- # this code is to list the applets that are installed
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # this code is to list the applets that are installed
3
+
2
4
  def listinstalledfiles
3
5
  fileList = Dir.new("installed").entries.sort.reverse.delete_if { |x| ! (x =~ /inf$/) }
4
6
  @filesresult = fileList.rwd_method("fillappletname")
@@ -1,4 +1,6 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
1
2
  # this code is to list the zipped applets that can be installed
3
+
2
4
  def fillziptoinstallname(inffile)
3
5
  applet = inffile.gsub(/\.zip$/, "")
4
6
  @a_installapplet = applet
@@ -7,6 +9,8 @@ end
7
9
 
8
10
  def listzipfilestoinstall
9
11
 
12
+ $zipsarraylocal = []
13
+
10
14
  if $zipslocation.slice(0,1) == "/" || $zipslocation.include?(":")
11
15
  startlangdir = $zipslocation
12
16
  else
@@ -1,4 +1,6 @@
1
- # this method puts the configuration rexord on the screen
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # this method puts the configuration rexord on the screen
3
+
2
4
  def loadconfigurationrecord
3
5
 
4
6
  require 'fileutils'
@@ -23,7 +23,9 @@ def runhelpwindowtinkerwin2
23
23
  if @rwd_tab == "superantcomremotezipsinstall"
24
24
  $help_topic = "remotegemapplet_install"
25
25
  end
26
-
26
+ if @rwd_tab == "localechangertab"
27
+ $help_topic = "localechanger_help"
28
+ end
27
29
 
28
30
  if @rwd_window != "rwdtinkerhelpwindow"
29
31
  $previouswindow = @rwd_window
@@ -0,0 +1,9 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # help about option setup for rwdtinker application
3
+
4
+
5
+ def showlocalechoicesoptions
6
+
7
+ @localechooseoptions = $langarray.rwd_options
8
+ end
9
+
@@ -1,3 +1,4 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
1
2
  #view contents of a tinker applet
2
3
  def viewappletcontents
3
4
  require 'fileutils'
@@ -1,13 +1,16 @@
1
+ #view the log on the tab
2
+
1
3
  def rwdtinkerrunviewlog
2
4
  require 'lib/rwdtinker/rwdtinkertools'
3
5
 
6
+ logfilelocation = File.join(LogDirectory, 'rwdtinker.log')
4
7
  if @a_rwdtinkerlognumber == nil
5
8
  @a_rwdtinkerlognumber = 11
6
- @returnlogdisplay = RwdtinkerTools.tail("rwd_files/log/rwdtinker.log",@a_rwdtinkerlognumber.to_i)
9
+
10
+ end
11
+
12
+ @returnlogdisplay = RwdtinkerTools.tail(logfilelocation , @a_rwdtinkerlognumber.to_i)
7
13
 
8
- else
9
- @returnlogdisplay = RwdtinkerTools.tail("rwd_files/log/rwdtinker.log",@a_rwdtinkerlognumber.to_i)
10
-
11
- end
14
+
12
15
  end
13
16