marty 0.5.41 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -2
  3. data/app/components/marty/api_auth_view.rb +5 -8
  4. data/app/components/marty/auth_app.rb +8 -9
  5. data/app/components/marty/auth_app/{javascripts → client}/auth_app.js +4 -4
  6. data/app/components/marty/config_view.rb +7 -9
  7. data/app/components/marty/extras/misc.rb +14 -1
  8. data/app/components/marty/form.rb +1 -1
  9. data/app/components/marty/grid.rb +27 -14
  10. data/app/components/marty/grid_append_only.rb +3 -5
  11. data/app/components/marty/import_type_view.rb +8 -11
  12. data/app/components/marty/live_search_grid_panel.rb +3 -3
  13. data/app/components/marty/main_auth_app.rb +17 -19
  14. data/app/components/marty/mcfly_grid_panel.rb +13 -15
  15. data/app/components/marty/new_posting_form.rb +5 -5
  16. data/app/components/marty/new_posting_window.rb +1 -1
  17. data/app/components/marty/panel.rb +2 -2
  18. data/app/components/marty/posting_grid.rb +19 -28
  19. data/app/components/marty/posting_window.rb +6 -7
  20. data/app/components/marty/promise_view.rb +23 -24
  21. data/app/components/marty/promise_view/{stylesheets → client}/promise_view.css +0 -0
  22. data/app/components/marty/report_form.rb +11 -10
  23. data/app/components/marty/report_select.rb +17 -15
  24. data/app/components/marty/reporting.rb +2 -2
  25. data/app/components/marty/script_form.rb +34 -38
  26. data/app/components/marty/script_form/{javascripts → client}/Ext.ux.form.field.CodeMirror.js +0 -0
  27. data/app/components/marty/script_form/{stylesheets → client}/codemirror.css +0 -0
  28. data/app/components/marty/script_form/{javascripts → client}/codemirror.js +0 -0
  29. data/app/components/marty/script_form/{stylesheets → client}/delorean.css +0 -0
  30. data/app/components/marty/script_form/{javascripts → client}/mode/clike/clike.js +0 -0
  31. data/app/components/marty/script_form/{javascripts → client}/mode/clike/index.html +0 -0
  32. data/app/components/marty/script_form/{javascripts → client}/mode/clike/scala.html +0 -0
  33. data/app/components/marty/script_form/{javascripts → client}/mode/clojure/clojure.js +0 -0
  34. data/app/components/marty/script_form/{javascripts → client}/mode/clojure/index.html +0 -0
  35. data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/LICENSE +0 -0
  36. data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/coffeescript.js +0 -0
  37. data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/index.html +0 -0
  38. data/app/components/marty/script_form/{javascripts → client}/mode/commonlisp/commonlisp.js +0 -0
  39. data/app/components/marty/script_form/{javascripts → client}/mode/commonlisp/index.html +0 -0
  40. data/app/components/marty/script_form/{javascripts → client}/mode/css/css.js +0 -0
  41. data/app/components/marty/script_form/{javascripts → client}/mode/css/index.html +0 -0
  42. data/app/components/marty/script_form/{javascripts → client}/mode/css/test.js +0 -0
  43. data/app/components/marty/script_form/{javascripts → client}/mode/delorean/delorean.js +0 -0
  44. data/app/components/marty/script_form/{javascripts → client}/mode/diff/diff.js +0 -0
  45. data/app/components/marty/script_form/{javascripts → client}/mode/diff/index.html +0 -0
  46. data/app/components/marty/script_form/{javascripts → client}/mode/ecl/ecl.js +0 -0
  47. data/app/components/marty/script_form/{javascripts → client}/mode/ecl/index.html +0 -0
  48. data/app/components/marty/script_form/{javascripts → client}/mode/erlang/erlang.js +0 -0
  49. data/app/components/marty/script_form/{javascripts → client}/mode/erlang/index.html +0 -0
  50. data/app/components/marty/script_form/{javascripts → client}/mode/gfm/gfm.js +0 -0
  51. data/app/components/marty/script_form/{javascripts → client}/mode/gfm/index.html +0 -0
  52. data/app/components/marty/script_form/{javascripts → client}/mode/go/go.js +0 -0
  53. data/app/components/marty/script_form/{javascripts → client}/mode/go/index.html +0 -0
  54. data/app/components/marty/script_form/{javascripts → client}/mode/groovy/groovy.js +0 -0
  55. data/app/components/marty/script_form/{javascripts → client}/mode/groovy/index.html +0 -0
  56. data/app/components/marty/script_form/{javascripts → client}/mode/haskell/haskell.js +0 -0
  57. data/app/components/marty/script_form/{javascripts → client}/mode/haskell/index.html +0 -0
  58. data/app/components/marty/script_form/{javascripts → client}/mode/haxe/haxe.js +0 -0
  59. data/app/components/marty/script_form/{javascripts → client}/mode/haxe/index.html +0 -0
  60. data/app/components/marty/script_form/{javascripts → client}/mode/htmlembedded/htmlembedded.js +0 -0
  61. data/app/components/marty/script_form/{javascripts → client}/mode/htmlembedded/index.html +0 -0
  62. data/app/components/marty/script_form/{javascripts → client}/mode/htmlmixed/htmlmixed.js +0 -0
  63. data/app/components/marty/script_form/{javascripts → client}/mode/htmlmixed/index.html +0 -0
  64. data/app/components/marty/script_form/{javascripts → client}/mode/javascript/index.html +0 -0
  65. data/app/components/marty/script_form/{javascripts → client}/mode/javascript/javascript.js +0 -0
  66. data/app/components/marty/script_form/{javascripts → client}/mode/jinja2/index.html +0 -0
  67. data/app/components/marty/script_form/{javascripts → client}/mode/jinja2/jinja2.js +0 -0
  68. data/app/components/marty/script_form/{javascripts → client}/mode/less/index.html +0 -0
  69. data/app/components/marty/script_form/{javascripts → client}/mode/less/less.js +0 -0
  70. data/app/components/marty/script_form/{javascripts → client}/mode/lua/index.html +0 -0
  71. data/app/components/marty/script_form/{javascripts → client}/mode/lua/lua.js +0 -0
  72. data/app/components/marty/script_form/{javascripts → client}/mode/markdown/index.html +0 -0
  73. data/app/components/marty/script_form/{javascripts → client}/mode/markdown/markdown.js +0 -0
  74. data/app/components/marty/script_form/{javascripts → client}/mode/markdown/test.js +0 -0
  75. data/app/components/marty/script_form/{javascripts → client}/mode/mysql/index.html +0 -0
  76. data/app/components/marty/script_form/{javascripts → client}/mode/mysql/mysql.js +0 -0
  77. data/app/components/marty/script_form/{javascripts → client}/mode/ntriples/index.html +0 -0
  78. data/app/components/marty/script_form/{javascripts → client}/mode/ntriples/ntriples.js +0 -0
  79. data/app/components/marty/script_form/{javascripts → client}/mode/ocaml/index.html +0 -0
  80. data/app/components/marty/script_form/{javascripts → client}/mode/ocaml/ocaml.js +0 -0
  81. data/app/components/marty/script_form/{javascripts → client}/mode/pascal/LICENSE +0 -0
  82. data/app/components/marty/script_form/{javascripts → client}/mode/pascal/index.html +0 -0
  83. data/app/components/marty/script_form/{javascripts → client}/mode/pascal/pascal.js +0 -0
  84. data/app/components/marty/script_form/{javascripts → client}/mode/perl/LICENSE +0 -0
  85. data/app/components/marty/script_form/{javascripts → client}/mode/perl/index.html +0 -0
  86. data/app/components/marty/script_form/{javascripts → client}/mode/perl/perl.js +0 -0
  87. data/app/components/marty/script_form/{javascripts → client}/mode/php/index.html +0 -0
  88. data/app/components/marty/script_form/{javascripts → client}/mode/php/php.js +0 -0
  89. data/app/components/marty/script_form/{javascripts → client}/mode/pig/index.html +0 -0
  90. data/app/components/marty/script_form/{javascripts → client}/mode/pig/pig.js +0 -0
  91. data/app/components/marty/script_form/{javascripts → client}/mode/plsql/index.html +0 -0
  92. data/app/components/marty/script_form/{javascripts → client}/mode/plsql/plsql.js +0 -0
  93. data/app/components/marty/script_form/{javascripts → client}/mode/properties/index.html +0 -0
  94. data/app/components/marty/script_form/{javascripts → client}/mode/properties/properties.js +0 -0
  95. data/app/components/marty/script_form/{javascripts → client}/mode/python/LICENSE.txt +0 -0
  96. data/app/components/marty/script_form/{javascripts → client}/mode/python/index.html +0 -0
  97. data/app/components/marty/script_form/{javascripts → client}/mode/python/python.js +0 -0
  98. data/app/components/marty/script_form/{javascripts → client}/mode/r/LICENSE +0 -0
  99. data/app/components/marty/script_form/{javascripts → client}/mode/r/index.html +0 -0
  100. data/app/components/marty/script_form/{javascripts → client}/mode/r/r.js +0 -0
  101. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/changes/changes.js +0 -0
  102. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/changes/index.html +0 -0
  103. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/spec/index.html +0 -0
  104. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/spec/spec.css +0 -0
  105. data/app/components/marty/script_form/{javascripts → client}/mode/rpm/spec/spec.js +0 -0
  106. data/app/components/marty/script_form/{javascripts → client}/mode/rst/index.html +0 -0
  107. data/app/components/marty/script_form/{javascripts → client}/mode/rst/rst.js +0 -0
  108. data/app/components/marty/script_form/{javascripts → client}/mode/ruby/LICENSE +0 -0
  109. data/app/components/marty/script_form/{javascripts → client}/mode/ruby/index.html +0 -0
  110. data/app/components/marty/script_form/{javascripts → client}/mode/ruby/ruby.js +0 -0
  111. data/app/components/marty/script_form/{javascripts → client}/mode/rust/index.html +0 -0
  112. data/app/components/marty/script_form/{javascripts → client}/mode/rust/rust.js +0 -0
  113. data/app/components/marty/script_form/{javascripts → client}/mode/scheme/index.html +0 -0
  114. data/app/components/marty/script_form/{javascripts → client}/mode/scheme/scheme.js +0 -0
  115. data/app/components/marty/script_form/{javascripts → client}/mode/shell/index.html +0 -0
  116. data/app/components/marty/script_form/{javascripts → client}/mode/shell/shell.js +0 -0
  117. data/app/components/marty/script_form/{javascripts → client}/mode/sieve/LICENSE +0 -0
  118. data/app/components/marty/script_form/{javascripts → client}/mode/sieve/index.html +0 -0
  119. data/app/components/marty/script_form/{javascripts → client}/mode/sieve/sieve.js +0 -0
  120. data/app/components/marty/script_form/{javascripts → client}/mode/smalltalk/index.html +0 -0
  121. data/app/components/marty/script_form/{javascripts → client}/mode/smalltalk/smalltalk.js +0 -0
  122. data/app/components/marty/script_form/{javascripts → client}/mode/smarty/index.html +0 -0
  123. data/app/components/marty/script_form/{javascripts → client}/mode/smarty/smarty.js +0 -0
  124. data/app/components/marty/script_form/{javascripts → client}/mode/sparql/index.html +0 -0
  125. data/app/components/marty/script_form/{javascripts → client}/mode/sparql/sparql.js +0 -0
  126. data/app/components/marty/script_form/{javascripts → client}/mode/stex/index.html +0 -0
  127. data/app/components/marty/script_form/{javascripts → client}/mode/stex/stex.js +0 -0
  128. data/app/components/marty/script_form/{javascripts → client}/mode/stex/test.js +0 -0
  129. data/app/components/marty/script_form/{javascripts → client}/mode/tiddlywiki/index.html +0 -0
  130. data/app/components/marty/script_form/{javascripts → client}/mode/tiddlywiki/tiddlywiki.css +0 -0
  131. data/app/components/marty/script_form/{javascripts → client}/mode/tiddlywiki/tiddlywiki.js +0 -0
  132. data/app/components/marty/script_form/{javascripts → client}/mode/tiki/index.html +0 -0
  133. data/app/components/marty/script_form/{javascripts → client}/mode/tiki/tiki.css +0 -0
  134. data/app/components/marty/script_form/{javascripts → client}/mode/tiki/tiki.js +0 -0
  135. data/app/components/marty/script_form/{javascripts → client}/mode/vb/LICENSE.txt +0 -0
  136. data/app/components/marty/script_form/{javascripts → client}/mode/vb/index.html +0 -0
  137. data/app/components/marty/script_form/{javascripts → client}/mode/vb/vb.js +0 -0
  138. data/app/components/marty/script_form/{javascripts → client}/mode/vbscript/index.html +0 -0
  139. data/app/components/marty/script_form/{javascripts → client}/mode/vbscript/vbscript.js +0 -0
  140. data/app/components/marty/script_form/{javascripts → client}/mode/velocity/index.html +0 -0
  141. data/app/components/marty/script_form/{javascripts → client}/mode/velocity/velocity.js +0 -0
  142. data/app/components/marty/script_form/{javascripts → client}/mode/verilog/index.html +0 -0
  143. data/app/components/marty/script_form/{javascripts → client}/mode/verilog/verilog.js +0 -0
  144. data/app/components/marty/script_form/{javascripts → client}/mode/xml/index.html +0 -0
  145. data/app/components/marty/script_form/{javascripts → client}/mode/xml/xml.js +0 -0
  146. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/LICENSE +0 -0
  147. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/index.html +0 -0
  148. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/index.html +0 -0
  149. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testBase.js +0 -0
  150. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testEmptySequenceKeyword.js +0 -0
  151. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testMultiAttr.js +0 -0
  152. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testNamespaces.js +0 -0
  153. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testProcessingInstructions.js +0 -0
  154. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testQuotes.js +0 -0
  155. data/app/components/marty/script_form/{javascripts → client}/mode/xquery/xquery.js +0 -0
  156. data/app/components/marty/script_form/{javascripts → client}/mode/yaml/index.html +0 -0
  157. data/app/components/marty/script_form/{javascripts → client}/mode/yaml/yaml.js +0 -0
  158. data/app/components/marty/script_form/{stylesheets → client}/theme/ambiance.css +0 -0
  159. data/app/components/marty/script_form/{stylesheets → client}/theme/blackboard.css +0 -0
  160. data/app/components/marty/script_form/{stylesheets → client}/theme/cobalt.css +0 -0
  161. data/app/components/marty/script_form/{stylesheets → client}/theme/eclipse.css +0 -0
  162. data/app/components/marty/script_form/{stylesheets → client}/theme/elegant.css +0 -0
  163. data/app/components/marty/script_form/{stylesheets → client}/theme/erlang-dark.css +0 -0
  164. data/app/components/marty/script_form/{stylesheets → client}/theme/lesser-dark.css +0 -0
  165. data/app/components/marty/script_form/{stylesheets → client}/theme/monokai.css +0 -0
  166. data/app/components/marty/script_form/{stylesheets → client}/theme/neat.css +0 -0
  167. data/app/components/marty/script_form/{stylesheets → client}/theme/night.css +0 -0
  168. data/app/components/marty/script_form/{stylesheets → client}/theme/rubyblue.css +0 -0
  169. data/app/components/marty/script_form/{stylesheets → client}/theme/vibrant-ink.css +0 -0
  170. data/app/components/marty/script_form/{stylesheets → client}/theme/xq-dark.css +0 -0
  171. data/app/components/marty/script_form/{javascripts → client}/util/closetag.js +0 -0
  172. data/app/components/marty/script_form/{javascripts → client}/util/dialog.css +0 -0
  173. data/app/components/marty/script_form/{javascripts → client}/util/dialog.js +0 -0
  174. data/app/components/marty/script_form/{javascripts → client}/util/foldcode.js +0 -0
  175. data/app/components/marty/script_form/{javascripts → client}/util/formatting.js +0 -0
  176. data/app/components/marty/script_form/{javascripts → client}/util/javascript-hint.js +0 -0
  177. data/app/components/marty/script_form/{javascripts → client}/util/loadmode.js +0 -0
  178. data/app/components/marty/script_form/{javascripts → client}/util/match-highlighter.js +0 -0
  179. data/app/components/marty/script_form/{javascripts → client}/util/multiplex.js +0 -0
  180. data/app/components/marty/script_form/{javascripts → client}/util/overlay.js +0 -0
  181. data/app/components/marty/script_form/{javascripts → client}/util/pig-hint.js +0 -0
  182. data/app/components/marty/script_form/{javascripts → client}/util/runmode-standalone.js +0 -0
  183. data/app/components/marty/script_form/{javascripts → client}/util/runmode.js +0 -0
  184. data/app/components/marty/script_form/{javascripts → client}/util/search.js +0 -0
  185. data/app/components/marty/script_form/{javascripts → client}/util/searchcursor.js +0 -0
  186. data/app/components/marty/script_form/{javascripts → client}/util/simple-hint.css +0 -0
  187. data/app/components/marty/script_form/{javascripts → client}/util/simple-hint.js +0 -0
  188. data/app/components/marty/script_form/{javascripts → client}/util/xml-hint.js +0 -0
  189. data/app/components/marty/script_grid.rb +24 -32
  190. data/app/components/marty/script_tester.rb +11 -11
  191. data/app/components/marty/scripting.rb +12 -12
  192. data/app/components/marty/simple_app.rb +2 -2
  193. data/app/components/marty/simple_app/{javascripts → client}/simple_app.js +0 -0
  194. data/app/components/marty/simple_app/{javascripts → client}/statusbar_ext.js +0 -0
  195. data/app/components/marty/tag_grid.rb +15 -21
  196. data/app/components/marty/user_view.rb +41 -57
  197. data/lib/marty/monkey.rb +1 -1
  198. data/lib/marty/version.rb +1 -1
  199. data/marty.gemspec +3 -2
  200. data/spec/dummy/app/assets/{stylesheets → client}/application.css +0 -0
  201. data/spec/dummy/app/assets/client/application.js +15 -0
  202. data/spec/features/scripting_spec.rb +17 -0
  203. data/spec/features/user_view_spec.rb +15 -15
  204. data/spec/spec_helper.rb +9 -0
  205. metadata +189 -174
@@ -7,12 +7,12 @@ class Marty::Reporting < Netzke::Base
7
7
  ]
8
8
  end
9
9
 
10
- js_configure do |c|
10
+ client_class do |c|
11
11
  c.header = false
12
12
  c.layout = :border
13
13
  c.defaults = {body_style: 'padding:0px'}
14
14
 
15
- c.select_report = <<-JS
15
+ c.select_report = l(<<-JS)
16
16
  function() {
17
17
  // this.netzkeGetComponent('report_form').netzkeLoad({});
18
18
  // FIXME: NetzkeReload() doesn't work when performed on
@@ -1,18 +1,18 @@
1
1
  class Marty::ScriptForm < Marty::Form
2
2
  DASH = 0x2012.chr('utf-8')
3
3
 
4
- css_configure do |c|
4
+ client_styles do |c|
5
5
  c.require :codemirror
6
6
  c.require :delorean
7
7
  end
8
8
 
9
- js_configure do |c|
9
+ client_class do |c|
10
10
  c.require :"Ext.ux.form.field.CodeMirror"
11
11
  c.require :codemirror
12
12
  c.require File.dirname(__FILE__) +
13
- "/script_form/javascripts/mode/delorean/delorean.js"
13
+ "/script_form/client/mode/delorean/delorean.js"
14
14
 
15
- c.set_action_modes = <<-JS
15
+ c.set_action_modes = l(<<-JS)
16
16
  function(a) {
17
17
  this.actions.apply.setDisabled(!a["save"]);
18
18
  // style input field text based on whether it is editable
@@ -21,13 +21,13 @@ class Marty::ScriptForm < Marty::Form
21
21
  }
22
22
  JS
23
23
 
24
- c.get_script_id = <<-JS
24
+ c.get_script_id = l(<<-JS)
25
25
  function() {
26
26
  return this.getForm().findField('id').getValue();
27
27
  }
28
28
  JS
29
29
 
30
- c.get_script_body = <<-JS
30
+ c.get_script_body = l(<<-JS)
31
31
  function() {
32
32
  return this.getForm().findField('body').getValue();
33
33
  }
@@ -35,7 +35,7 @@ class Marty::ScriptForm < Marty::Form
35
35
 
36
36
  # Sets an editor line class (unset any previous line class). For
37
37
  # now, only one line is classed at a time.
38
- c.set_line_error = <<-JS
38
+ c.set_line_error = l(<<-JS)
39
39
  function(line) {
40
40
  line -= 1;
41
41
  var editor = this.getForm().findField('body').editor;
@@ -51,7 +51,7 @@ class Marty::ScriptForm < Marty::Form
51
51
 
52
52
  ######################################################################
53
53
 
54
- c.refresh_parent = <<-JS
54
+ c.refresh_parent = l(<<-JS)
55
55
  function(script_name) {
56
56
  this.netzkeGetParentComponent().scriptRefresh(script_name);
57
57
  }
@@ -60,7 +60,7 @@ class Marty::ScriptForm < Marty::Form
60
60
  ######################################################################
61
61
 
62
62
  # FIXME: no longer works -- see related FIXME below.
63
- c.on_print = <<-JS
63
+ c.on_print = l(<<-JS)
64
64
  function() {
65
65
  window.open(
66
66
  "/marty/components/#{self.name}.html?script_id=" + this.getScriptId(),
@@ -73,9 +73,9 @@ class Marty::ScriptForm < Marty::Form
73
73
 
74
74
  ######################################################################
75
75
 
76
- endpoint :netzke_load do |params, this|
76
+ endpoint :netzke_load do |params|
77
77
 
78
- return this.netzke_feedback("Permission Denied") unless
78
+ return client.netzke_notify("Permission Denied") unless
79
79
  self.class.has_any_perm?
80
80
 
81
81
  script_name = params[:script_name]
@@ -94,15 +94,15 @@ class Marty::ScriptForm < Marty::Form
94
94
  "meta" => {},
95
95
  }
96
96
 
97
- this.set_form_values(js_data)
98
- this.set_title title
99
- this.set_readonly_mode !can_save?(script)
97
+ client.netzke_set_form_values(js_data)
98
+ client.set_title title
99
+ client.netzke_set_readonly_mode !can_save?(script)
100
100
 
101
101
  modes = {
102
102
  save: can_save?(script),
103
103
  }
104
104
 
105
- this.set_action_modes(modes)
105
+ client.set_action_modes(modes)
106
106
  end
107
107
 
108
108
  def can_save?(script)
@@ -118,9 +118,9 @@ class Marty::ScriptForm < Marty::Form
118
118
  a.disabled = true
119
119
  end
120
120
 
121
- endpoint :netzke_submit do |params, this|
121
+ endpoint :submit do |params|
122
122
 
123
- return this.netzke_feedback("Permission Denied") unless
123
+ return client.netzke_notify("Permission Denied") unless
124
124
  self.class.has_any_perm?
125
125
 
126
126
  # copied from corresponding method in form_panel.services
@@ -132,19 +132,19 @@ class Marty::ScriptForm < Marty::Form
132
132
  @record = script = Marty::Script.find_by_id(data["id"])
133
133
 
134
134
  unless script
135
- this.netzke_feedback "no record"
135
+ client.netzke_notify "no record"
136
136
  return
137
137
  end
138
138
 
139
139
  if script.body == data["body"]
140
- this.netzke_feedback "no save needed"
140
+ client.netzke_notify "no save needed"
141
141
  # clear the error line if any
142
- this.set_line_error -1
142
+ client.set_line_error -1
143
143
  return
144
144
  end
145
145
 
146
146
  unless can_save?(script)
147
- this.netzke_feedback "Permission denied"
147
+ client.netzke_notify "Permission denied"
148
148
  return
149
149
  end
150
150
 
@@ -152,27 +152,23 @@ class Marty::ScriptForm < Marty::Form
152
152
  dev = Marty::Tag.find_by_name("DEV")
153
153
  Marty::ScriptSet.new(dev).parse_check(script.name, data["body"])
154
154
  rescue Delorean::ParseError => exc
155
- this.netzke_feedback exc.message
156
- this.apply_form_errors({})
157
- this.set_line_error(exc.line)
155
+ client.netzke_notify exc.message
156
+ client.netzke_apply_form_errors({})
157
+ client.set_line_error(exc.line)
158
158
  return
159
159
  end
160
160
 
161
161
  script.body = data["body"]
162
162
 
163
163
  if script.save
164
- this.set_form_values(js_record_data)
165
- this.netzke_set_result(true)
166
- this.refresh_parent(script.name)
164
+ client.netzke_set_form_values(js_record_data)
165
+ client.netzke_set_result(true)
166
+ client.refresh_parent(script.name)
167
167
  return
168
168
  end
169
169
 
170
- data_adapter.errors_array(script).each do |error|
171
- flash error: error
172
- end
173
-
174
- this.netzke_feedback @flash
175
- this.apply_form_errors(build_form_errors(record))
170
+ client.netzke_notify(model_adapter.errors_array(script).join("\n"))
171
+ client.netzke_apply_form_errors(build_form_errors(record))
176
172
  end
177
173
 
178
174
  ######################################################################
@@ -186,11 +182,11 @@ class Marty::ScriptForm < Marty::Form
186
182
 
187
183
  ######################################################################
188
184
 
189
- def configure_bbar(c)
190
- c[:bbar] = [
191
- :apply,
192
- :print,
193
- ]
185
+ def default_bbar
186
+ [
187
+ :apply,
188
+ :print,
189
+ ]
194
190
  end
195
191
 
196
192
  ######################################################################