Commit b2867b37 authored by Vivek's avatar Vivek

updated data transfer methods of gadgets

parent 12f12b2d
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -202,13 +206,11 @@ ...@@ -202,13 +206,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -230,7 +232,7 @@ ...@@ -230,7 +232,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441284333.1</float> <float>1441290714.22</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -239,7 +241,7 @@ ...@@ -239,7 +241,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
(function (window, document, rJS, promiseEventListener) {\n (function (window, document, rJS, promiseEventListener) {\n
"use strict";\n "use strict";\n
\n \n
var DEFAULT_GADGET_URL = "interface_bootstrap3_wysiwyg.html";\n var DEFAULT_GADGET_URL = "interface_gadget_bootstrap3_wysiwyg.html";\n
\n \n
function declareSubGadget(gadget, sub_gadget_url) {\n function declareSubGadget(gadget, sub_gadget_url) {\n
return gadget.declareGadget(sub_gadget_url, {\n return gadget.declareGadget(sub_gadget_url, {\n
...@@ -442,7 +442,7 @@ ...@@ -442,7 +442,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.2278.56594.14933</string> </value> <value> <string>945.33605.45148.55005</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -460,7 +460,7 @@ ...@@ -460,7 +460,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441290071.66</float> <float>1441354709.61</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -111,7 +115,7 @@ ...@@ -111,7 +115,7 @@
\n \n
<link rel="stylesheet" type="text/css" href="bootstrap3-wysiwyg/components/bootstrap/dist/css/bootstrap.min.css"></link>\n <link rel="stylesheet" type="text/css" href="bootstrap3-wysiwyg/components/bootstrap/dist/css/bootstrap.min.css"></link>\n
<link rel="stylesheet" type="text/css" href="bootstrap3-wysiwyg/components/bootstrap/dist/css/bootstrap-theme.min.css"></link>\n <link rel="stylesheet" type="text/css" href="bootstrap3-wysiwyg/components/bootstrap/dist/css/bootstrap-theme.min.css"></link>\n
<link rel="stylesheet" type="text/css" href="bootstrap3-wysiwyg/components/components-font-awesome/css/font-awesome.min.css"></link>\n <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"></link>\n
<link rel="stylesheet" type="text/css" href="bootstrap3-wysiwyg/dist/bootstrap3-wysihtml5.min.css"></link>\n <link rel="stylesheet" type="text/css" href="bootstrap3-wysiwyg/dist/bootstrap3-wysihtml5.min.css"></link>\n
\n \n
<link rel="http://www.renderjs.org/rel/interface" href="editor_interface.html"></link>\n <link rel="http://www.renderjs.org/rel/interface" href="editor_interface.html"></link>\n
...@@ -194,13 +198,11 @@ ...@@ -194,13 +198,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -222,7 +224,7 @@ ...@@ -222,7 +224,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441288320.46</float> <float>1441290710.99</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -231,7 +233,7 @@ ...@@ -231,7 +233,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
...@@ -267,7 +269,7 @@ ...@@ -267,7 +269,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.32533.54258.52497</string> </value> <value> <string>945.32551.55719.62702</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -285,7 +287,7 @@ ...@@ -285,7 +287,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441289733.13</float> <float>1441291473.24</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -213,13 +217,11 @@ ...@@ -213,13 +217,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -241,7 +243,7 @@ ...@@ -241,7 +243,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441288449.98</float> <float>1441290714.85</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -250,7 +252,7 @@ ...@@ -250,7 +252,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -187,13 +191,11 @@ ...@@ -187,13 +191,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -215,7 +217,7 @@ ...@@ -215,7 +217,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441288062.55</float> <float>1441290712.16</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -224,7 +226,7 @@ ...@@ -224,7 +226,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -95,35 +99,65 @@ ...@@ -95,35 +99,65 @@
</item> </item>
<item> <item>
<key> <string>text_content</string> </key> <key> <string>text_content</string> </key>
<value> <string>/*jslint indent: 2 */\n <value> <string encoding="cdata"><![CDATA[
/*global window, jQuery, rJS*/\n
/*jslint indent: 2 */\n
/*global window, jQuery, rJS, RSVP, Chartist*/\n
"use strict";\n "use strict";\n
\n \n
(function (window, $, rJS) {\n (function (window, $, rJS, Chartist) {\n
\n \n
rJS(window).\n rJS(window).\n
declareMethod(\'getContent\', function () {\n declareMethod(\'getContent\', function () {\n
return;\n var data = this.props.data,\n
content = {},\n
i;\n
content.labels = data.labels;\n
content.datasets = [];\n
for(i = 0; i < data.series.length; i += 1) {\n
content.datasets.push(data.series[i]);\n
}\n
return content;\n
})\n })\n
.declareMethod(\'setContent\', function (content) {\n .declareMethod(\'setContent\', function (content) {\n
var data = {},\n
gadget = this,\n
i;\n
data.labels = content.labels;\n
data.series = [];\n
for(i = 0; i < content.datasets.length; i += 1) {\n
data.series.push(content.datasets[i]);\n
}\n
gadget.props.data = data;\n
new Chartist.Line(\'.ct-chart\', data);\n
return;\n return;\n
})\n })\n
.declareMethod(\'clearContent\', function () {\n .declareMethod(\'clearContent\', function () {\n
return;\n return;\n
})\n })\n
.declareMethod(\'initStateTransfer\', function () {\n .declareMethod(\'initStateTransfer\', function () {\n
return;\n var current_state = {},\n
gadget = this;\n
return RSVP.Queue()\n
.push(function(){\n
return gadget.getContent();\n
})\n
.push(function(content) {\n
current_state.content = content;\n
return current_state;\n
});\n
})\n })\n
.declareMethod(\'finishStateTransfer\', function (current_state) {\n .declareMethod(\'finishStateTransfer\', function (current_state) {\n
return;\n return this.setContent(current_state.content);\n
})\n })\n
.declareMethod(\'initSubGadget\', function () {\n .declareMethod(\'initSubGadget\', function () {\n
var data = {\n var data = {\n
labels: [\'Mon\', \'Tue\', \'Wed\', \'Thu\', \'Fri\'],\n labels: [\'Mon\', \'Tue\', \'Wed\', \'Thu\', \'Fri\'],\n
series: [[5, 2, 4, 2, 0],\n series: [[5, 2, 4, 2, 0],\n
[4, 3, 5, 1, 2]]\n [4, 3, 5, 1, 2]]\n
};\n },\n
\n gadget = this;\n
gadget.props.data = data; \n
new Chartist.Line(\'.ct-chart\', data);\n new Chartist.Line(\'.ct-chart\', data);\n
})\n })\n
.ready(function (g) {\n .ready(function (g) {\n
...@@ -131,8 +165,10 @@ ...@@ -131,8 +165,10 @@
\n \n
});\n });\n
\n \n
}(window, jQuery, rJS));\n }(window, jQuery, rJS, Chartist));\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -196,13 +232,11 @@ ...@@ -196,13 +232,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -224,7 +258,7 @@ ...@@ -224,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441288173.32</float> <float>1441290711.56</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -233,7 +267,7 @@ ...@@ -233,7 +267,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
...@@ -269,7 +303,7 @@ ...@@ -269,7 +303,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.32510.40481.52224</string> </value> <value> <string>945.33714.48637.10274</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -287,7 +321,7 @@ ...@@ -287,7 +321,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441288240.24</float> <float>1441361996.21</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -186,13 +190,11 @@ ...@@ -186,13 +190,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -214,7 +216,7 @@ ...@@ -214,7 +216,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441287059.8</float> <float>1441290721.23</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -223,7 +225,7 @@ ...@@ -223,7 +225,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -95,27 +99,58 @@ ...@@ -95,27 +99,58 @@
</item> </item>
<item> <item>
<key> <string>text_content</string> </key> <key> <string>text_content</string> </key>
<value> <string>/*jslint indent: 2 */\n <value> <string encoding="cdata"><![CDATA[
/*global window, jQuery, rJS*/\n
/*jslint indent: 2 */\n
/*global window, jQuery, rJS, RSVP, Chart*/\n
"use strict";\n "use strict";\n
\n \n
(function (window, $, rJS) {\n (function (window, $, rJS, Chart) {\n
\n \n
rJS(window).\n rJS(window).\n
declareMethod(\'getContent\', function () {\n declareMethod(\'getContent\', function () {\n
return;\n var data = this.props.data,\n
content = {},\n
i;\n
content.labels = data.labels;\n
content.datasets = [];\n
for(i = 0; i < data.datasets.length; i += 1) {\n
content.datasets.push(data.datasets[i].data);\n
}\n
return content;\n
})\n })\n
.declareMethod(\'setContent\', function (content) {\n .declareMethod(\'setContent\', function (content) {\n
var data = {},\n
gadget = this,\n
i;\n
data.labels = content.labels;\n
data.datasets = [];\n
for(i = 0; i < content.datasets.length; i += 1) {\n
data.datasets.push({data:content.datasets[i]});\n
}\n
gadget.props.data = data;\n
gadget.props.line_chart = new Chart(gadget.props.ctx).Line(data, {\n
datasetFill : false\n
});\n
return;\n return;\n
})\n })\n
.declareMethod(\'clearContent\', function () {\n .declareMethod(\'clearContent\', function () {\n
return;\n return;\n
})\n })\n
.declareMethod(\'initStateTransfer\', function () {\n .declareMethod(\'initStateTransfer\', function () {\n
return;\n var current_state = {},\n
gadget = this;\n
return RSVP.Queue()\n
.push(function(){\n
return gadget.getContent();\n
})\n
.push(function(content) {\n
current_state.content = content;\n
return current_state;\n
});\n
})\n })\n
.declareMethod(\'finishStateTransfer\', function (current_state) {\n .declareMethod(\'finishStateTransfer\', function (current_state) {\n
return;\n return this.setContent(current_state.content);\n
})\n })\n
.declareMethod(\'initSubGadget\', function () {\n .declareMethod(\'initSubGadget\', function () {\n
var gadget = this,\n var gadget = this,\n
...@@ -146,8 +181,10 @@ ...@@ -146,8 +181,10 @@
\n \n
});\n });\n
\n \n
}(window, jQuery, rJS));\n }(window, jQuery, rJS, Chart));\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -211,13 +248,11 @@ ...@@ -211,13 +248,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -239,7 +274,7 @@ ...@@ -239,7 +274,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441287138.91</float> <float>1441290712.74</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -248,7 +283,7 @@ ...@@ -248,7 +283,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
...@@ -284,7 +319,7 @@ ...@@ -284,7 +319,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.32492.63348.33638</string> </value> <value> <string>945.33781.46058.13073</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -302,7 +337,7 @@ ...@@ -302,7 +337,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441287270.16</float> <float>1441364931.54</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -187,13 +191,11 @@ ...@@ -187,13 +191,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -215,7 +217,7 @@ ...@@ -215,7 +217,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441286847.7</float> <float>1441290715.82</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -224,7 +226,7 @@ ...@@ -224,7 +226,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -98,10 +102,10 @@ ...@@ -98,10 +102,10 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
/*jslint indent: 2 */\n /*jslint indent: 2 */\n
/*global window, jQuery, rJS*/\n /*global window, jQuery, rJS, RSVP, Handsontable*/\n
"use strict";\n "use strict";\n
\n \n
(function (window, $, rJS) {\n (function (window, $, rJS, RSVP, Handsontable) {\n
\n \n
rJS(window)\n rJS(window)\n
.declareMethod(\'getContent\', function () {\n .declareMethod(\'getContent\', function () {\n
...@@ -187,7 +191,7 @@ ...@@ -187,7 +191,7 @@
g.props = {};\n g.props = {};\n
});\n });\n
\n \n
}(window, jQuery, rJS));\n }(window, jQuery, rJS, RSVP, Handsontable));\n
]]></string> </value> ]]></string> </value>
...@@ -254,13 +258,11 @@ ...@@ -254,13 +258,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -282,7 +284,7 @@ ...@@ -282,7 +284,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441286936.94</float> <float>1441290718.38</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -291,7 +293,7 @@ ...@@ -291,7 +293,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
...@@ -327,7 +329,7 @@ ...@@ -327,7 +329,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.32489.35286.56200</string> </value> <value> <string>945.32551.63779.17083</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -345,7 +347,7 @@ ...@@ -345,7 +347,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441287012.33</float> <float>1441293672.51</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -151,8 +151,6 @@ ...@@ -151,8 +151,6 @@
/*jslint nomen: true, indent: 2, maxerr: 3 */\n /*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, jQuery, RSVP, DOMParser) {\n (function (window, rJS, jQuery, RSVP, DOMParser) {\n
"use strict";\n "use strict";\n
\n
var VERIFY_GADGET_SCOPE = "verify_gadget";\n
\n \n
function verifyInterfaceDefinition(interface_url) {\n function verifyInterfaceDefinition(interface_url) {\n
//to verify if interface definition follows the correct template.\n //to verify if interface definition follows the correct template.\n
...@@ -310,8 +308,8 @@ ...@@ -310,8 +308,8 @@
return new RSVP.Queue()\n return new RSVP.Queue()\n
.push(function () {\n .push(function () {\n
return interface_gadget.declareGadget(gadget_url, {\n return interface_gadget.declareGadget(gadget_url, {\n
scope: gadget_url,\n // sandbox: \'iframe\',\n
element: interface_gadget.__element\n scope: gadget_url\n
});\n });\n
})\n })\n
.push(function () {\n .push(function () {\n
...@@ -369,12 +367,12 @@ ...@@ -369,12 +367,12 @@
dt_count = 0,\n dt_count = 0,\n
dl_count = 1,\n dl_count = 1,\n
i;\n i;\n
interface_data.name = doc.getElementsByTagName(\'h1\')[0].innerText;\n interface_data.name = doc.getElementsByTagName(\'h1\')[0].innerHTML;\n
interface_data.description = doc.getElementsByTagName(\'h3\')[0].innerText;\n interface_data.description = doc.getElementsByTagName(\'h3\')[0].innerHTML;\n
for (i = 0; i < method_len; i += 1) {\n for (i = 0; i < method_len; i += 1) {\n
var method = {\n var method = {\n
name: dt_list[dt_count].innerText,\n name: dt_list[dt_count].innerHTML,\n
description: dd_list[dt_count].innerText,\n description: dd_list[dt_count].innerHTML,\n
argument_list: []\n argument_list: []\n
},\n },\n
argument_len = dl_list[dl_count].getElementsByTagName(\'dt\').length,\n argument_len = dl_list[dl_count].getElementsByTagName(\'dt\').length,\n
...@@ -383,8 +381,8 @@ ...@@ -383,8 +381,8 @@
dl_count += 1;\n dl_count += 1;\n
for (j = 0; j < argument_len; j += 1) {\n for (j = 0; j < argument_len; j += 1) {\n
var argument_item = {\n var argument_item = {\n
name: dt_list[dt_count].innerText,\n name: dt_list[dt_count].innerHTML,\n
description: dd_list[dt_count].innerText,\n description: dd_list[dt_count].innerHTML,\n
required: dt_list[dt_count].getAttribute("data-parameter-required") === "optional" ? false:true,\n required: dt_list[dt_count].getAttribute("data-parameter-required") === "optional" ? false:true,\n
type: dt_list[dt_count].getAttribute("data-parameter-type")\n type: dt_list[dt_count].getAttribute("data-parameter-type")\n
};\n };\n
...@@ -404,20 +402,14 @@ ...@@ -404,20 +402,14 @@
});\n });\n
})\n })\n
\n \n
.declareMethod("verifyGadgetInterfaceImplementation", function (gadget_url, interface_url) {\n .declareMethod("verifyGadgetSingleInterfaceImplementation", function (verify_gadget, interface_url) {\n
var interface_gadget = this,\n var interface_gadget = this,\n
absolute_interface_url;\n absolute_interface_url;\n
return RSVP.Queue()\n return RSVP.Queue()\n
.push(function () {\n .push(function () {\n
if(!gadget_url || !interface_url) {\n
throw new Error("Invalid Inputs");\n
}\n
return interface_gadget.getVerifyGadget(gadget_url);\n
})\n
.push(function (gadget) {\n
return RSVP.all([ \n return RSVP.all([ \n
interface_gadget.getDeclaredGadgetInterfaceList(gadget),\n interface_gadget.getDeclaredGadgetInterfaceList(verify_gadget),\n
interface_gadget.getAbsoluteURL(gadget, interface_url)\n interface_gadget.getAbsoluteURL(verify_gadget, interface_url)\n
]);\n ]);\n
})\n })\n
.push(function (interface_detail) {\n .push(function (interface_detail) {\n
...@@ -428,13 +420,10 @@ ...@@ -428,13 +420,10 @@
.push(function () {\n .push(function () {\n
return verifyInterfaceDefinition(absolute_interface_url);\n return verifyInterfaceDefinition(absolute_interface_url);\n
})\n })\n
.push(function () {\n
return interface_gadget.getDeclaredGadget(gadget_url);\n
})\n
.push(function (gadget) {\n .push(function (gadget) {\n
return RSVP.all([\n return RSVP.all([\n
interface_gadget.getDefinedInterfaceMethodList(absolute_interface_url),\n interface_gadget.getDefinedInterfaceMethodList(absolute_interface_url),\n
interface_gadget.getDeclaredGadgetMethodList(gadget)\n interface_gadget.getDeclaredGadgetMethodList(verify_gadget)\n
]);\n ]);\n
})\n })\n
.push(function(method_list) {\n .push(function(method_list) {\n
...@@ -447,60 +436,44 @@ ...@@ -447,60 +436,44 @@
return false;\n return false;\n
});\n });\n
})\n })\n
\n .declareMethod("verifyGadgetInterfaceImplementation", function (gadget_data, interface_data) {\n
.declareMethod("verifyGadgetAllInterfaceImplementation", function (gadget_url) {\n var interface_gadget = this,\n
var interface_gadget = this;\n verify_gadget,\n
interface_list,\n
declared_gadget = false;\n
return RSVP.Queue()\n return RSVP.Queue()\n
.push(function () {\n .push(function () {\n
if(!gadget_url) {\n var required_gadget;\n
if(!gadget_data) {\n
throw new Error("Invalid Input");\n throw new Error("Invalid Input");\n
} else if(gadget_data.constructor === String) {\n
required_gadget = interface_gadget.getVerifyGadget(gadget_data);\n
declared_gadget = true;\n
} else {\n
required_gadget = gadget_data;\n
}\n }\n
return interface_gadget.getVerifyGadget(gadget_url);\n return required_gadget;\n
})\n
.push(function (gadget) {\n
return interface_gadget.getDeclaredGadgetInterfaceList(gadget);\n
})\n
.push(function (declared_interface_list) {\n
var interface_url,\n
result_list = [],\n
item;\n
for (item in declared_interface_list) {\n
interface_url = declared_interface_list[item];\n
result_list.push(interface_gadget.verifyGadgetInterfaceImplementation(gadget_url, interface_url));\n
}\n
return RSVP.all(result_list);\n
})\n
.push(function(result_list) {\n
var item;\n
for(item in result_list) {\n
if (!result_list[item]) {\n
throw new Error("Interface Implementation Failure.");\n
}\n
}\n
})\n
.push (function() {\n
return true;\n
}, function(error) {\n
return false;\n
});\n
})\n })\n
\n .push(function (required_gadget) {\n
.declareMethod("verifyGadgetInterfaceListImplementation", function (gadget_url, interface_url_list) {\n var required_interface_list = [];\n
var interface_gadget = this;\n verify_gadget = required_gadget;\n
return RSVP.Queue()\n if(!interface_data) {\n
.push(function () {\n required_interface_list = interface_gadget.getDeclaredGadgetInterfaceList(verify_gadget);\n
if(!gadget_url) {\n } else if(interface_data.constructor === Array) {\n
throw new Error("Invalid Input");\n required_interface_list = interface_data;\n
}\n } else if(interface_data.constructor === String) {\n
return interface_gadget.getVerifyGadget(gadget_url);\n required_interface_list.push(interface_data);\n
}\n
return required_interface_list;\n
})\n })\n
.push(function (gadget) {\n .push(function (required_interface_list) {\n
var interface_url,\n var interface_url,\n
result_list = [],\n result_list = [],\n
item;\n item;\n
for (item in interface_url_list) {\n interface_list = required_interface_list;\n
interface_url = interface_url_list[item];\n for (item in interface_list) {\n
result_list.push(interface_gadget.verifyGadgetInterfaceImplementation(gadget_url, interface_url));\n interface_url = interface_list[item];\n
result_list.push(interface_gadget.verifyGadgetSingleInterfaceImplementation(verify_gadget, interface_url));\n
}\n }\n
return RSVP.all(result_list);\n return RSVP.all(result_list);\n
})\n })\n
...@@ -519,7 +492,8 @@ ...@@ -519,7 +492,8 @@
});\n });\n
});\n });\n
\n \n
}(window, rJS, jQuery, RSVP, DOMParser)); }(window, rJS, jQuery, RSVP, DOMParser));\n
]]></string> </value> ]]></string> </value>
</item> </item>
...@@ -656,7 +630,7 @@ ...@@ -656,7 +630,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.3616.25517.61337</string> </value> <value> <string>945.3617.50497.56388</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -674,7 +648,7 @@ ...@@ -674,7 +648,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1439554666.23</float> <float>1441292695.71</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -200,13 +204,11 @@ ...@@ -200,13 +204,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -228,7 +230,7 @@ ...@@ -228,7 +230,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441286536.02</float> <float>1441290716.32</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -237,7 +239,7 @@ ...@@ -237,7 +239,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -98,18 +102,28 @@ ...@@ -98,18 +102,28 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
/*jslint indent: 2 */\n /*jslint indent: 2 */\n
/*global window, jQuery, rJS*/\n /*global window, jQuery, rJS, Slick*/\n
"use strict";\n "use strict";\n
\n \n
(function (window, $, rJS) {\n (function (window, $, rJS, Slick) {\n
\n \n
function requiredFieldValidator(value) {\n function requiredFieldValidator(value) {\n
if (value == null || value == undefined || !value.length) {\n if (value === null || value === undefined || !value.length) {\n
return {valid: false, msg: "This is a required field"};\n return {valid: false, msg: "This is a required field"};\n
} else {\n } else {\n
return {valid: true, msg: null};\n return {valid: true, msg: null};\n
}\n }\n
}\n }\n
function getNameFromNumber(num) {\n
var numeric = num % 26,\n
letter = String.fromCharCode(65 + numeric),\n
num2 = Math.floor(num / 26);\n
if (num2 > 0) {\n
return getNameFromNumber(num2 - 1) + letter;\n
} else {\n
return letter;\n
}\n
}\n
\n \n
rJS(window).\n rJS(window).\n
declareMethod(\'getContent\', function () {\n declareMethod(\'getContent\', function () {\n
...@@ -140,7 +154,7 @@ ...@@ -140,7 +154,7 @@
columns.push({\n columns.push({\n
title: title,\n title: title,\n
id: i\n id: i\n
})\n });\n
column_index_dict[temp_columns[i].field] = grid.getColumnIndex(temp_columns[i].id);\n column_index_dict[temp_columns[i].field] = grid.getColumnIndex(temp_columns[i].id);\n
}\n }\n
for(i = 0; i < temp_data.length; i += 1) {\n for(i = 0; i < temp_data.length; i += 1) {\n
...@@ -172,7 +186,7 @@ ...@@ -172,7 +186,7 @@
"id": i,\n "id": i,\n
"field": i,\n "field": i,\n
"editor": Slick.Editors.Text \n "editor": Slick.Editors.Text \n
})\n });\n
}\n }\n
for(i = 0; i < content.length; i += 1) {\n for(i = 0; i < content.length; i += 1) {\n
var d = (data[i] = {});\n var d = (data[i] = {});\n
...@@ -193,8 +207,8 @@ ...@@ -193,8 +207,8 @@
data = [],\n data = [],\n
columns = [],\n columns = [],\n
k;\n k;\n
for(k = 1; k < 7; k += 1) {\n for(k = 0; k < 100; k += 1) {\n
columns.push({id: k, name: "", field: k, editor: Slick.Editors.Text});\n columns.push({id: k, name: getNameFromNumber(k), field: k, editor: Slick.Editors.Text});\n
} \n } \n
$(function () {\n $(function () {\n
var i, j;\n var i, j;\n
...@@ -228,7 +242,7 @@ ...@@ -228,7 +242,7 @@
g.props = {};\n g.props = {};\n
});\n });\n
\n \n
}(window, jQuery, rJS));\n }(window, jQuery, rJS, Slick));\n
]]></string> </value> ]]></string> </value>
...@@ -295,13 +309,11 @@ ...@@ -295,13 +309,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -323,7 +335,7 @@ ...@@ -323,7 +335,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441286636.0</float> <float>1441290719.83</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -332,7 +344,7 @@ ...@@ -332,7 +344,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
...@@ -368,7 +380,7 @@ ...@@ -368,7 +380,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.32484.60257.63197</string> </value> <value> <string>945.33860.24768.49083</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -386,7 +398,7 @@ ...@@ -386,7 +398,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441286734.84</float> <float>1441369486.01</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -111,10 +115,10 @@ ...@@ -111,10 +115,10 @@
\n \n
<link rel="http://www.renderjs.org/rel/interface" href="editor_interface.html"></link>\n <link rel="http://www.renderjs.org/rel/interface" href="editor_interface.html"></link>\n
\n \n
<script src="tinymce/js/tinymce/tinymce.js"></script>\n
<script src="jquery.js"></script>\n <script src="jquery.js"></script>\n
<script src="rsvp"></script>\n <script src="rsvp.js"></script>\n
<script src="renderjs.js"></script>\n <script src="renderjs.js"></script>\n
<script src="tinymce/tinymce.min.js"></script>\n
<script src="interface_gadget_tinymce.js" type="text/javascript"></script>\n <script src="interface_gadget_tinymce.js" type="text/javascript"></script>\n
</head>\n </head>\n
<body>\n <body>\n
...@@ -189,13 +193,11 @@ ...@@ -189,13 +193,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -217,7 +219,7 @@ ...@@ -217,7 +219,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441286114.79</float> <float>1441290713.54</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -226,7 +228,7 @@ ...@@ -226,7 +228,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
...@@ -262,7 +264,7 @@ ...@@ -262,7 +264,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.32518.7195.50585</string> </value> <value> <string>945.33600.34754.53230</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -280,7 +282,7 @@ ...@@ -280,7 +282,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441288747.31</float> <float>1441353714.75</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -24,7 +27,6 @@ ...@@ -24,7 +27,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -52,8 +53,11 @@ ...@@ -52,8 +53,11 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
</tuple> </tuple>
...@@ -96,10 +100,10 @@ ...@@ -96,10 +100,10 @@
<item> <item>
<key> <string>text_content</string> </key> <key> <string>text_content</string> </key>
<value> <string>/*jslint indent: 2 */\n <value> <string>/*jslint indent: 2 */\n
/*global window, jQuery, rJS*/\n /*global window, jQuery, rJS, RSVP*/\n
"use strict";\n "use strict";\n
\n \n
(function (window, $, rJS) {\n (function (window, $, rJS, RSVP) {\n
\n \n
rJS(window).\n rJS(window).\n
declareMethod(\'getContent\', function () {\n declareMethod(\'getContent\', function () {\n
...@@ -121,7 +125,7 @@ ...@@ -121,7 +125,7 @@
.push(function(content) {\n .push(function(content) {\n
current_state.content = content;\n current_state.content = content;\n
return current_state;\n return current_state;\n
})\n });\n
})\n })\n
.declareMethod(\'finishStateTransfer\', function (current_state) {\n .declareMethod(\'finishStateTransfer\', function (current_state) {\n
return this.setContent(current_state.content);\n return this.setContent(current_state.content);\n
...@@ -154,7 +158,7 @@ ...@@ -154,7 +158,7 @@
.ready(function (g) {\n .ready(function (g) {\n
});\n });\n
\n \n
}(window, jQuery, rJS));\n }(window, jQuery, rJS, RSVP));\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -219,13 +223,11 @@ ...@@ -219,13 +223,11 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <value> <string>publish_alive</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>zope1</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -247,7 +249,7 @@ ...@@ -247,7 +249,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441286218.94</float> <float>1441290720.25</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
...@@ -256,7 +258,7 @@ ...@@ -256,7 +258,7 @@
</item> </item>
<item> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>draft</string> </value> <value> <string>published_alive</string> </value>
</item> </item>
</dictionary> </dictionary>
</list> </list>
...@@ -292,7 +294,7 @@ ...@@ -292,7 +294,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.32477.42506.45653</string> </value> <value> <string>945.33593.23703.31453</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -310,7 +312,7 @@ ...@@ -310,7 +312,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441286322.82</float> <float>1441353720.28</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment