t2-web 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/README +1 -1
  2. data/Rakefile +4 -4
  3. data/doc/classes/WebT2App.html +1123 -0
  4. data/doc/classes/WebT2App.src/M000001.html +18 -0
  5. data/doc/classes/WebT2App.src/M000002.html +25 -0
  6. data/doc/classes/WebT2App.src/M000003.html +22 -0
  7. data/doc/classes/WebT2App.src/M000004.html +18 -0
  8. data/doc/classes/WebT2App.src/M000005.html +18 -0
  9. data/doc/classes/WebT2App.src/M000006.html +18 -0
  10. data/doc/classes/WebT2App.src/M000007.html +18 -0
  11. data/doc/classes/WebT2App.src/M000008.html +32 -0
  12. data/doc/classes/WebT2App.src/M000009.html +27 -0
  13. data/doc/classes/WebT2App.src/M000010.html +18 -0
  14. data/doc/classes/WebT2App.src/M000011.html +21 -0
  15. data/doc/classes/WebT2App.src/M000012.html +25 -0
  16. data/doc/classes/WebT2App.src/M000013.html +22 -0
  17. data/doc/classes/WebT2App.src/M000014.html +23 -0
  18. data/doc/classes/WebT2App.src/M000015.html +32 -0
  19. data/doc/classes/WebT2App.src/M000016.html +27 -0
  20. data/doc/classes/WebT2App.src/M000017.html +18 -0
  21. data/doc/classes/WebT2App.src/M000018.html +25 -0
  22. data/doc/classes/WebT2App.src/M000019.html +22 -0
  23. data/doc/classes/WebT2App.src/M000020.html +18 -0
  24. data/doc/classes/WebT2App.src/M000021.html +18 -0
  25. data/doc/classes/WebT2App.src/M000022.html +18 -0
  26. data/doc/classes/WebT2App.src/M000023.html +18 -0
  27. data/doc/classes/WebT2App.src/M000024.html +32 -0
  28. data/doc/classes/WebT2App.src/M000025.html +27 -0
  29. data/doc/classes/WebT2App.src/M000026.html +18 -0
  30. data/doc/classes/WebT2App.src/M000027.html +21 -0
  31. data/doc/classes/WebT2App.src/M000028.html +25 -0
  32. data/doc/classes/WebT2App.src/M000029.html +22 -0
  33. data/doc/classes/WebT2App.src/M000030.html +23 -0
  34. data/doc/classes/WebT2App.src/M000031.html +32 -0
  35. data/doc/classes/WebT2App.src/M000032.html +27 -0
  36. data/doc/classes/WebT2App.src/M000033.html +18 -0
  37. data/doc/classes/WebT2App.src/M000034.html +25 -0
  38. data/doc/classes/WebT2App.src/M000035.html +22 -0
  39. data/doc/classes/WebT2App.src/M000036.html +18 -0
  40. data/doc/classes/WebT2App.src/M000037.html +18 -0
  41. data/doc/classes/WebT2App.src/M000038.html +18 -0
  42. data/doc/classes/WebT2App.src/M000039.html +18 -0
  43. data/doc/classes/WebT2App.src/M000040.html +32 -0
  44. data/doc/classes/WebT2App.src/M000041.html +27 -0
  45. data/doc/classes/WebT2App.src/M000042.html +18 -0
  46. data/doc/classes/WebT2App.src/M000043.html +25 -0
  47. data/doc/classes/WebT2App.src/M000044.html +22 -0
  48. data/doc/classes/WebT2App.src/M000045.html +18 -0
  49. data/doc/classes/WebT2App.src/M000046.html +18 -0
  50. data/doc/classes/WebT2App.src/M000047.html +18 -0
  51. data/doc/classes/WebT2App.src/M000048.html +18 -0
  52. data/doc/classes/WebT2App.src/M000049.html +32 -0
  53. data/doc/classes/WebT2App.src/M000050.html +27 -0
  54. data/doc/created.rid +1 -0
  55. data/doc/files/bin/t2_webapp_rb.html +115 -0
  56. data/doc/files/pkg/t2-web-0_0_2/bin/web_t2_service_rb.html +114 -0
  57. data/doc/files/pkg/t2-web-0_0_3/bin/t2_webapp_rb.html +115 -0
  58. data/doc/files/pkg/t2-web-0_0_3/bin/web_t2_service_rb.html +114 -0
  59. data/doc/files/pkg/t2-web-0_0_4/bin/t2_webapp_rb.html +115 -0
  60. data/doc/files/pkg/t2-web-0_0_5/bin/t2_webapp_rb.html +115 -0
  61. data/doc/fr_class_index.html +27 -0
  62. data/doc/fr_file_index.html +32 -0
  63. data/doc/fr_method_index.html +76 -0
  64. data/doc/index.html +24 -0
  65. data/doc/rdoc-style.css +208 -0
  66. metadata +71 -8
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>generate_textarea_tooltip (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.4/bin/t2_webapp.rb, line 111</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_textarea_tooltip</span>(<span class="ruby-identifier">input</span>)
15
+ <span class="ruby-value str">&quot;Example: &quot;</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">unescapeHTML</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">examples</span>[<span class="ruby-value">0</span>])
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,32 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>generate_data_navigation_frame (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.4/bin/t2_webapp.rb, line 117</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_data_navigation_frame</span>(<span class="ruby-identifier">my_exp_wkf</span>, <span class="ruby-identifier">uuid</span>, <span class="ruby-identifier">wid</span>, <span class="ruby-identifier">wkf_version</span>, <span class="ruby-identifier">t2_server</span>, <span class="ruby-identifier">finished_execution</span>)
15
+
16
+ <span class="ruby-identifier">data_navigation_frame</span> = <span class="ruby-value str">&quot;&lt;html&gt;&lt;head&gt;&lt;link href='/css/results_navigation.css' rel='stylesheet'/&gt;&lt;/head&gt;&lt;body&gt;&lt;table&gt;&quot;</span>
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">my_exp_wkf</span>.<span class="ruby-identifier">outputs</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span><span class="ruby-value">1</span>
18
+ <span class="ruby-identifier">my_exp_wkf</span>.<span class="ruby-identifier">outputs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">output</span><span class="ruby-operator">|</span>
19
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;tr&gt;&quot;</span>
20
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">finished_execution</span>
21
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;td&gt;&lt;a href='javascript:void(0);' onclick='parent.getSampleOutput(\\\&quot;#{t2_server}\\\&quot;, \\\&quot;#{uuid}\\\&quot;, &quot;</span> <span class="ruby-operator">&lt;&lt;</span>
22
+ <span class="ruby-node">&quot;\\\&quot;#{output.name}\\\&quot;, \\\&quot;#{wid}\\\&quot;, \\\&quot;#{wkf_version}\\\&quot;);'&gt;#{output.name}&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&quot;</span>
23
+ <span class="ruby-keyword kw">else</span>
24
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;td&gt;#{output.name}&lt;/td&gt;&lt;td&gt;&lt;img src='/images/snake_transparent.gif' alt='Loading Content...'&gt;&lt;/td&gt;&quot;</span>
25
+ <span class="ruby-keyword kw">end</span>
26
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/tr&gt;&quot;</span>
27
+ <span class="ruby-keyword kw">end</span>
28
+ <span class="ruby-keyword kw">end</span>
29
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;&quot;</span>
30
+ <span class="ruby-keyword kw">end</span></pre>
31
+ </body>
32
+ </html>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>generate_html_result (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.4/bin/t2_webapp.rb, line 137</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_html_result</span>(<span class="ruby-identifier">data</span>)
15
+ <span class="ruby-identifier">html</span> = <span class="ruby-value str">&quot;&quot;</span>
16
+ <span class="ruby-comment cmt">#p data</span>
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">instance_of?</span> <span class="ruby-constant">Array</span>
18
+ <span class="ruby-identifier">html</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'&lt;br&gt;'</span>)
19
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">instance_of?</span> <span class="ruby-constant">String</span>
20
+ <span class="ruby-identifier">html</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/[\n]/</span>, <span class="ruby-value str">'&lt;br&gt;'</span>)
21
+ <span class="ruby-keyword kw">else</span>
22
+ <span class="ruby-identifier">html</span> = <span class="ruby-identifier">data</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-identifier">html</span>
25
+ <span class="ruby-keyword kw">end</span></pre>
26
+ </body>
27
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>t2_library_sanitize (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 29</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">t2_library_sanitize</span>(<span class="ruby-identifier">string</span>)
15
+ <span class="ruby-identifier">ex</span> = <span class="ruby-identifier">string</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">&quot;'&quot;</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>chomp_last_newline (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 37</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chomp_last_newline</span>(<span class="ruby-identifier">file</span>)
15
+
16
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-identifier">file</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">size</span>(<span class="ruby-identifier">file</span>) <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>
17
+ <span class="ruby-identifier">f</span> = <span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>, <span class="ruby-value str">&quot;rb+&quot;</span>)
18
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">seek</span>(<span class="ruby-value">-1</span>, <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">SEEK_END</span>)
19
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">truncate</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">size</span>(<span class="ruby-identifier">file</span>) <span class="ruby-operator">-</span> <span class="ruby-value">1</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>(<span class="ruby-value">1</span>) <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;\n&quot;</span>
20
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">close</span>
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <span class="ruby-keyword kw">end</span></pre>
24
+ </body>
25
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>get_url_from_wid (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 51</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_url_from_wid</span>(<span class="ruby-identifier">wid</span>, <span class="ruby-identifier">wkf_version</span>)
15
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">wkf_version</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;default&quot;</span>
16
+ <span class="ruby-node">&quot;/workflows/#{wid}&quot;</span>
17
+ <span class="ruby-keyword kw">else</span>
18
+ <span class="ruby-node">&quot;/workflows/#{wid}?version=#{wkf_version}&quot;</span>
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>generate_header_frame (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 61</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_header_frame</span>(<span class="ruby-identifier">my_exp_wkf</span>, <span class="ruby-identifier">my_exp_usr</span>)
15
+ <span class="ruby-value str">&quot;&lt;html&gt;\n &lt;head&gt;&lt;link href='/css/form.css' rel='stylesheet'/&gt;&lt;/head&gt;\n &lt;body&gt;\n \#{generate_header_table(my_exp_wkf, my_exp_usr)}\n &lt;/body&gt;\n&lt;/html&gt;\n&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>generate_header_table (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 75</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_header_table</span>(<span class="ruby-identifier">my_exp_wkf</span>, <span class="ruby-identifier">my_exp_usr</span>)
15
+ <span class="ruby-value str">&quot; &lt;div id='header'&gt;\n &lt;table class='header'&gt;\n &lt;tr&gt;\n &lt;td&gt;\n &lt;img alt='NBIC logo' src='/images/nbic_logo.gif' /&gt;\n &lt;/td&gt;\n &lt;td&gt;\n &lt;table class='header-title'&gt;\n &lt;tr&gt;\n &lt;td class='header-title'&gt;Workflow: \#{@my_exp_wkf.title}&lt;/td&gt;\n &lt;/tr&gt;\n &lt;tr&gt;\n &lt;td class='right'&gt;workflow by \#{@my_exp_usr.name}&lt;/td&gt;\n\n &lt;/tr&gt;\n &lt;/table&gt;\n &lt;/td&gt;\n &lt;td&gt;\n &lt;img alt='LUMC logo' class='right' src='/images/lumc_logo2.png' /&gt;\n &lt;/td&gt;\n &lt;/tr&gt;\n &lt;/table&gt;\n &lt;/div&gt;\n&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>generate_label_tooltip (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 106</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_label_tooltip</span>(<span class="ruby-identifier">input</span>)
15
+ <span class="ruby-value str">&quot;Description: &quot;</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">unescapeHTML</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">descriptions</span>[<span class="ruby-value">0</span>])
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>generate_textarea_tooltip (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 111</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_textarea_tooltip</span>(<span class="ruby-identifier">input</span>)
15
+ <span class="ruby-value str">&quot;Example: &quot;</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">unescapeHTML</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">examples</span>[<span class="ruby-value">0</span>])
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,32 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>generate_data_navigation_frame (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 117</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_data_navigation_frame</span>(<span class="ruby-identifier">my_exp_wkf</span>, <span class="ruby-identifier">uuid</span>, <span class="ruby-identifier">wid</span>, <span class="ruby-identifier">wkf_version</span>, <span class="ruby-identifier">t2_server</span>, <span class="ruby-identifier">finished_execution</span>)
15
+
16
+ <span class="ruby-identifier">data_navigation_frame</span> = <span class="ruby-value str">&quot;&lt;html&gt;&lt;head&gt;&lt;link href='/css/results_navigation.css' rel='stylesheet'/&gt;&lt;/head&gt;&lt;body&gt;&lt;table&gt;&quot;</span>
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">my_exp_wkf</span>.<span class="ruby-identifier">outputs</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span><span class="ruby-value">1</span>
18
+ <span class="ruby-identifier">my_exp_wkf</span>.<span class="ruby-identifier">outputs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">output</span><span class="ruby-operator">|</span>
19
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;tr&gt;&quot;</span>
20
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">finished_execution</span>
21
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;td&gt;&lt;a href='javascript:void(0);' onclick='parent.getSampleOutput(\\\&quot;#{t2_server}\\\&quot;, \\\&quot;#{uuid}\\\&quot;, &quot;</span> <span class="ruby-operator">&lt;&lt;</span>
22
+ <span class="ruby-node">&quot;\\\&quot;#{output.name}\\\&quot;, \\\&quot;#{wid}\\\&quot;, \\\&quot;#{wkf_version}\\\&quot;);'&gt;#{output.name}&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&quot;</span>
23
+ <span class="ruby-keyword kw">else</span>
24
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;td&gt;#{output.name}&lt;/td&gt;&lt;td&gt;&lt;img src='/images/snake_transparent.gif' alt='Loading Content...'&gt;&lt;/td&gt;&quot;</span>
25
+ <span class="ruby-keyword kw">end</span>
26
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/tr&gt;&quot;</span>
27
+ <span class="ruby-keyword kw">end</span>
28
+ <span class="ruby-keyword kw">end</span>
29
+ <span class="ruby-identifier">data_navigation_frame</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;&quot;</span>
30
+ <span class="ruby-keyword kw">end</span></pre>
31
+ </body>
32
+ </html>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>generate_html_result (WebT2App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 137</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_html_result</span>(<span class="ruby-identifier">data</span>)
15
+ <span class="ruby-identifier">html</span> = <span class="ruby-value str">&quot;&quot;</span>
16
+ <span class="ruby-comment cmt">#p data</span>
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">instance_of?</span> <span class="ruby-constant">Array</span>
18
+ <span class="ruby-identifier">html</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'&lt;br&gt;'</span>)
19
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">instance_of?</span> <span class="ruby-constant">String</span>
20
+ <span class="ruby-identifier">html</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/[\n]/</span>, <span class="ruby-value str">'&lt;br&gt;'</span>)
21
+ <span class="ruby-keyword kw">else</span>
22
+ <span class="ruby-identifier">html</span> = <span class="ruby-identifier">data</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-identifier">html</span>
25
+ <span class="ruby-keyword kw">end</span></pre>
26
+ </body>
27
+ </html>
data/doc/created.rid ADDED
@@ -0,0 +1 @@
1
+ Tue, 06 Mar 2012 15:25:28 +0100
@@ -0,0 +1,115 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>File: t2_webapp.rb</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="fileHeader">
50
+ <h1>t2_webapp.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>bin/t2_webapp.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Mon Feb 13 15:18:41 +0100 2012</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+
72
+ <div id="requires-list">
73
+ <h3 class="section-bar">Required files</h3>
74
+
75
+ <div class="name-list">
76
+ rubygems&nbsp;&nbsp;
77
+ sinatra&nbsp;&nbsp;
78
+ haml&nbsp;&nbsp;
79
+ open-uri&nbsp;&nbsp;
80
+ rest-client&nbsp;&nbsp;
81
+ t2-server&nbsp;&nbsp;
82
+ myexperiment-rest&nbsp;&nbsp;
83
+ cgi&nbsp;&nbsp;
84
+ </div>
85
+ </div>
86
+
87
+ </div>
88
+
89
+
90
+ </div>
91
+
92
+
93
+ <!-- if includes -->
94
+
95
+ <div id="section">
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+ <!-- if method_list -->
105
+
106
+
107
+ </div>
108
+
109
+
110
+ <div id="validator-badges">
111
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
112
+ </div>
113
+
114
+ </body>
115
+ </html>
@@ -0,0 +1,114 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>File: web_t2_service.rb</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="fileHeader">
50
+ <h1>web_t2_service.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>pkg/t2-web-0.0.2/bin/web_t2_service.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Wed Sep 07 17:48:34 +0200 2011</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+
72
+ <div id="requires-list">
73
+ <h3 class="section-bar">Required files</h3>
74
+
75
+ <div class="name-list">
76
+ rubygems&nbsp;&nbsp;
77
+ sinatra&nbsp;&nbsp;
78
+ haml&nbsp;&nbsp;
79
+ rest-open-uri&nbsp;&nbsp;
80
+ rest-client&nbsp;&nbsp;
81
+ t2-server&nbsp;&nbsp;
82
+ myexperiment-rest&nbsp;&nbsp;
83
+ </div>
84
+ </div>
85
+
86
+ </div>
87
+
88
+
89
+ </div>
90
+
91
+
92
+ <!-- if includes -->
93
+
94
+ <div id="section">
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ <!-- if method_list -->
104
+
105
+
106
+ </div>
107
+
108
+
109
+ <div id="validator-badges">
110
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
111
+ </div>
112
+
113
+ </body>
114
+ </html>