Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vivek
erp5
Commits
70ffc069
Commit
70ffc069
authored
Nov 24, 2015
by
Vivek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gadget_interface_validator: implemented interfaces. updated routing logic.
parent
e5a44f2c
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1280 additions
and
140 deletions
+1280
-140
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_appcache.xml
...m/web_page_module/gadget_interface_validator_appcache.xml
+4
-3
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_interface_form_html.xml
...module/gadget_interface_validator_interface_form_html.xml
+357
-0
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_interface_panel_html.xml
...odule/gadget_interface_validator_interface_panel_html.xml
+20
-18
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_interface_report_html.xml
...dule/gadget_interface_validator_interface_report_html.xml
+363
-0
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_interface_router_html.xml
...dule/gadget_interface_validator_interface_router_html.xml
+366
-0
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_page_form_html.xml
...page_module/gadget_interface_validator_page_form_html.xml
+4
-2
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_page_form_js.xml
...b_page_module/gadget_interface_validator_page_form_js.xml
+24
-45
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_page_report_html.xml
...ge_module/gadget_interface_validator_page_report_html.xml
+3
-3
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_page_report_js.xml
...page_module/gadget_interface_validator_page_report_js.xml
+77
-55
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_panel_html.xml
...web_page_module/gadget_interface_validator_panel_html.xml
+4
-2
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_router_html.xml
...eb_page_module/gadget_interface_validator_router_html.xml
+8
-3
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_router_js.xml
.../web_page_module/gadget_interface_validator_router_js.xml
+50
-9
No files found.
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_appcache.xml
View file @
70ffc069
...
...
@@ -126,7 +126,8 @@ gadget_interface_validator_page_report.html\n
gadget_interface_validator_page_report.js\n
gadget_interface_validator_panel.html\n
gadget_interface_validator_panel.js\n
gadget_interface_validator_reportpage_interface.html\n
gadget_interface_validator_interface_report.html\n
gadget_interface_validator_interface_form.html\n
gadget_interface_validator_router.html\n
gadget_interface_validator_router.js\n
NETWORK:\n
...
...
@@ -265,7 +266,7 @@ NETWORK:\n
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.4
6348.9104.1143
</string>
</value>
<value>
<string>
946.4
7357.40863.26214
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -283,7 +284,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>
144
6024817.39
</float>
<float>
144
8333996.38
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_interface_form_html.xml
0 → 100644
View file @
70ffc069
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_interface_validator_interface_form.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_interface_validator_interface_form_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<!DOCTYPE html>
\n
<html>
\n
<head>
\n
<title>
Gadget Interface Validator Form Interface
</title>
\n
</head>
\n
<body>
\n
<h1>
Gadget Interface Validator Form Interface
</h1>
\n
<h3>
Interface for the form page of an interface validator application.
</h3>
\n
<dl>
\n
<dt>
initiateForm
</dt>
\n
<dd>
A method to initiate the form with required fields and messages as per the options provided.
</dd>
\n
<dl>
\n
<dt
data-parameter-required=
"required"
>
options
</dt>
\n
<dd>
An object containing the display message and other parameters.
</dd>
\n
</dl>
\n
<dt>
submitForm
</dt>
\n
<dd>
A method to call after submitting the form. It should fetch and process the form data, and render the next page accordingly.
</dd>
\n
<dl>
\n
<dt
data-parameter-required=
"required"
>
options
</dt>
\n
<dd>
An object containing the submitted form data.
</dd>
\n
</dl>
\n
</dl>
\n
</body>
\n
</html>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget Interface Validator Form Interface
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1448336607.88
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
947.20329.18683.47718
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1448335317.72
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
empty
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1448335214.97
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_
reportpage_interface
_html.xml
→
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_
interface_panel
_html.xml
View file @
70ffc069
...
...
@@ -75,7 +75,7 @@
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_interface_validator_
reportpage_interface
.html
</string>
</value>
<value>
<string>
gadget_interface_validator_
interface_panel
.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
@@ -85,7 +85,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_interface_validator_
reportpage_interface
_html
</string>
</value>
<value>
<string>
gadget_interface_validator_
interface_panel
_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
...
...
@@ -108,18 +108,18 @@
<!DOCTYPE html>
\n
<html>
\n
<head>
\n
<title>
Gadget Interface Validator
Reportpage
Interface
</title>
\n
<title>
Gadget Interface Validator
Panel
Interface
</title>
\n
</head>
\n
<body>
\n
<h1>
Gadget Interface Validator
Reportpage
Interface
</h1>
\n
<h3>
Interface
to display the interface validation report of an
application.
</h3>
\n
<h1>
Gadget Interface Validator
Panel
Interface
</h1>
\n
<h3>
Interface
for the panel of an interface validator
application.
</h3>
\n
<dl>
\n
<dt>
reportPageDummyMethod1
</dt>
\n
<dd>
Defining the prototype for a report page dummy method
</dd>
\n
<dl>
\n
<dt
data-parameter-required=
"required"
data-parameter-type=
"int"
>
param1
</dt>
\n
<dd>
An integer parameter
</dd>
\n
</dl>
\n
<dt>
toggle
</dt>
\n
<dd>
A method to toggle the panel.
</dd>
\n
<dl>
</dl>
\n
<dt>
close
</dt>
\n
<dd>
A method to close the panel.
</dd>
\n
<
dl><
/dl>
\n
</dl>
\n
</body>
\n
</html>
...
...
@@ -128,7 +128,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget Interface Validator
Reportpage
Interface
</string>
</value>
<value>
<string>
Gadget Interface Validator
Panel
Interface
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
...
...
@@ -214,7 +214,7 @@
</tuple>
<state>
<tuple>
<float>
144
5963728.8
7
</float>
<float>
144
8336611.6
7
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
@@ -259,7 +259,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
6.46338.32164.16076
</string>
</value>
<value>
<string>
94
7.20345.36527.7202
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -277,7 +277,7 @@
</tuple>
<state>
<tuple>
<float>
144
5963711.98
</float>
<float>
144
8336276.92
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
@@ -300,7 +300,9 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
...
...
@@ -316,7 +318,7 @@
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
<value>
<string>
empty
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
...
...
@@ -334,7 +336,7 @@
</tuple>
<state>
<tuple>
<float>
144
5963404.93
</float>
<float>
144
8336074.97
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_interface_report_html.xml
0 → 100644
View file @
70ffc069
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_interface_validator_interface_report.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_interface_validator_interface_report_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<!DOCTYPE html>
\n
<html>
\n
<head>
\n
<title>
Gadget Interface Validator Reportpage Interface
</title>
\n
</head>
\n
<body>
\n
<h1>
Gadget Interface Validator Reportpage Interface
</h1>
\n
<h3>
Interface for the report page gadget of an interface validator application.
</h3>
\n
<dl>
\n
<dt>
generateInitialReportData
</dt>
\n
<dd>
A method to generate the initial data for the report as per the options provided.
</dd>
\n
<dl>
\n
<dt
data-parameter-required=
"required"
>
options
</dt>
\n
<dd>
An object containing the form data based on which the initial report data is generated..
</dd>
\n
</dl>
\n
<dt>
renderInitialReport
</dt>
\n
<dd>
A method to render initial report. It should have a list of non-verified/in-progress gadgets.
</dd>
\n
<dl>
\n
<dt
data-parameter-required=
"required"
>
options
</dt>
\n
<dd>
An object containing the initial report data.
</dd>
\n
</dl>
\n
<dt>
renderFinalReport
</dt>
\n
<dd>
A method to render final report. It should update the initial report with verification status and other details.
</dd>
\n
<dl>
\n
<dt
data-parameter-required=
"required"
>
options
</dt>
\n
<dd>
An object containing the final report data. It can be raw data to be processed and displayed accordingly.
</dd>
\n
</dl>
\n
</dl>
\n
</body>
\n
</html>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget Interface Validator Report Interface
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1448341256.68
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
947.20421.7060.5870
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1448341228.83
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
empty
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1448340589.11
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_interface_router_html.xml
0 → 100644
View file @
70ffc069
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_interface_validator_interface_router.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_interface_validator_interface_router_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<!DOCTYPE html>
\n
<html>
\n
<head>
\n
<title>
Gadget Interface Validator Router Interface
</title>
\n
</head>
\n
<body>
\n
<h1>
Gadget Interface Validator Router Interface
</h1>
\n
<h3>
Interface for the router page of an interface validator application.
</h3>
\n
<dl>
\n
<dt>
start
</dt>
\n
<dd></dd>
\n
<dl></dl>
\n
<dt>
route
</dt>
\n
<dd>
A method to generate the parameters for the next page based on the parameters.
</dd>
\n
<dl>
\n
<dt
data-parameter-required=
"required"
>
options
</dt>
\n
<dd>
An object containing the parameters to decide which page or page type to go next.
</dd>
\n
</dl>
\n
<dt>
redirect
</dt>
\n
<dd>
A method to redirect current page to next, possibly by changing the hash.
</dd>
\n
<dl>
\n
<dt
data-parameter-required=
"required"
>
options
</dt>
\n
<dd>
An object containing the parameters required to generate next path.
</dd>
\n
</dl>
\n
<dt>
getCommandUrlFor
</dt>
\n
<dd>
A method to formulate URL based on parameters.
</dd>
\n
<dl>
\n
<dt
data-parameter-required=
"required"
>
options
</dt>
\n
<dd>
An object containing the parameters required to generate the URL. For example, page_type, arguments.
</dd>
\n
</dl>
\n
</dl>
\n
</body>
\n
</html>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget Interface Validator Router Interface
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1448336616.74
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
947.20331.43376.23978
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1448335463.88
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
empty
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1448335326.76
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_page_form_html.xml
View file @
70ffc069
...
...
@@ -111,6 +111,8 @@
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
\n
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
\n
<title>
Gadget Interface Validator Formpage
</title>
\n
\n
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"gadget_interface_validator_interface_form.html"
/>
\n
\n
<!-- renderjs -->
\n
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
\n
...
...
@@ -284,7 +286,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
6.46342.43288.26299
</string>
</value>
<value>
<string>
94
7.20320.48391.307
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -302,7 +304,7 @@
</tuple>
<state>
<tuple>
<float>
144
5964472.82
</float>
<float>
144
8337650.56
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_page_form_js.xml
View file @
70ffc069
...
...
@@ -105,18 +105,6 @@
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, RSVP, Handlebars) {\n
"use strict";\n
\n
var INTERFACE_GADGET_SCOPE = "interface_gadget";\n
\n
function fetchPageType(gadget_url) {\n
var page_type = \'\',\n
key = \'_page_\';\n
if(gadget_url.indexOf(key) >
-1) {\n
page_type = gadget_url.substring(gadget_url.indexOf(key) + key.length,\n
gadget_url.lastIndexOf(\'.\'));\n
}\n
return page_type;\n
}\n
\n
/////////////////////////////////////////////////////////////////\n
// Handlebars\n
...
...
@@ -157,6 +145,10 @@
/////////////////////////////////////////////////////////////////\n
\n
.declareMethod("render", function (options) {\n
return this.initiateForm(options);\n
})\n
\n
.declareMethod("initiateForm", function(options) {\n
var gadget = this;\n
return new RSVP.Queue()\n
.push(function() {\n
...
...
@@ -174,46 +166,33 @@
gadget.props.content_element.querySelector("input[type=text]")\n
.focus();\n
});\n
\n
})\n
\n
.declareService(function () {\n
////////////////////////////////////\n
// Form submit listening. Prevent browser to automatically handle the form submit in case of a bug\n
////////////////////////////////////\n
var gadget = this;\n
function formSubmit(submit_event) {\n
var interface_gadget,\n
.declareMethod("submitForm", function(options) {\n
var gadget = this,\n
appcache_url;\n
return new RSVP.Queue()\n
.push(function () {\n
gadget.props.content_element.querySelector("input[type=submit]")\n
.disabled = true;\n
return submit_event
.target[0].value;\n
return options
.target[0].value;\n
})\n
.push(function(submit_url) {\n
appcache_url = submit_url;\n
return gadget.getDeclaredGadget(INTERFACE_GADGET_SCOPE);\n
})\n
.push(function(i_gadget) {\n
var required_interface = \'gadget_interface_validator_reportpage_interface.html\',\n
gadget_source_url = \'gadget_interface_validator.appcache\';\n
interface_gadget = i_gadget;\n
return interface_gadget.getGadgetListImplementingInterface(required_interface, gadget_source_url);\n
})\n
.push(function(gadget_list) {\n
if(gadget_list.length > 0) {\n
var page_type = fetchPageType(gadget_list[0]);\n
return gadget.redirect({\n
page: page_type
,\n
interface_type: \'report\'
,\n
appcache_url: appcache_url\n
});\n
} else {\n
return gadget.redirect({\n
found: false\n
});\n
}\n
});\n
})\n
\n
.declareService(function () {\n
////////////////////////////////////\n
// Form submit listening. Prevent browser to automatically handle the form submit in case of a bug\n
////////////////////////////////////\n
var gadget = this;\n
function formSubmit(submit_event) {\n
return gadget.submitForm(submit_event);\n
}\n
// Listen to form submit\n
return loopEventListener(\n
...
...
@@ -361,7 +340,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
6.54877.22908.40635
</string>
</value>
<value>
<string>
94
7.20323.653.614
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -379,7 +358,7 @@
</tuple>
<state>
<tuple>
<float>
144
6717901.46
</float>
<float>
144
8337701.42
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_page_report_html.xml
View file @
70ffc069
...
...
@@ -112,7 +112,7 @@
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
\n
<title>
Gadget Interface Validator Reportpage
</title>
\n
\n
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"gadget_interface_validator_
reportpage_interface.html"
>
\n
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"gadget_interface_validator_
interface_report.html"
/
>
\n
\n
<!-- renderjs -->
\n
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
\n
...
...
@@ -293,7 +293,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.4
5995.23548.62924
</string>
</value>
<value>
<string>
946.4
6352.7411.28416
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -311,7 +311,7 @@
</tuple>
<state>
<tuple>
<float>
144
5964486.74
</float>
<float>
144
8336906.2
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_page_report_js.xml
View file @
70ffc069
...
...
@@ -107,41 +107,6 @@
"use strict";\n
\n
var INTERFACE_GADGET_SCOPE = "interface_gadget";\n
\n
function renderInitialReport(gadget, gadget_list) {\n
var gadget_info_list = [],\n
row_list = [],\n
column_list = [\'Gadget Name\', \'Declared Interfaces\', \'Validation Status\'],\n
cell_list,\n
default_status = "In Progress",\n
content = \'\',\n
item;\n
for(item in gadget_list) {\n
cell_list = [];\n
cell_list.push({\n
default_class: "gadget_name",\n
value: gadget_list[item]\n
});\n
cell_list.push({\n
default_class: "interface_list",\n
value: default_status\n
});\n
cell_list.push({\n
default_class: "validation_status",\n
value: default_status\n
});\n
row_list.push({\n
"cell_list": cell_list,\n
"default_id": gadget_list[item].substr(0, gadget_list[item].indexOf(\'.\'))\n
});\n
}\n
content += report_widget_table({\n
column_list: column_list,\n
row_list: row_list\n
});\n
gadget.props.content_element.innerHTML = content;\n
$(gadget.props.element).trigger("create");\n
}\n
\n
function validateAppGadgetList(gadget, gadget_list){\n
var item;\n
...
...
@@ -171,7 +136,7 @@
function verifyGadgetImplementation(gadget, verify_gadget_url) {\n
var interface_gadget,\n
interface_list = [],\n
default_validation_status = {result:"N/A"};\n
default_validation_status = {result:"N/A"
, result_message: "N/A"
};\n
return new RSVP.Queue()\n
.push(function() {\n
return gadget.getDeclaredGadget(INTERFACE_GADGET_SCOPE);\n
...
...
@@ -218,11 +183,13 @@
if(report_data.validation_status === true) {\n
validation_status = "Success";\n
update_element.setAttribute(\'style\', \'color: green\');\n
}\n
if(report_data.validation_status === false) {\n
} else {\n
validation_status = (validation_message !== undefined? validation_message : "Failure");\n
update_element.setAttribute(\'style\', \'cursor: pointer; color: red\');\n
update_element.setAttribute(\'style\', \'color: red\');\n
if(report_data.validation_status === false) {\n
update_element.className += "error expand";\n
update_element.setAttribute(\'style\', \'cursor: pointer; color: red\');\n
}\n
}\n
gadget.props.error_data[report_data.id] = report_data.error_detail;\n
update_element.querySelector(".validation_status").innerHTML = validation_status;\n
...
...
@@ -282,8 +249,27 @@
\n
.declareMethod("render", function (options) {\n
var gadget = this,\n
appcache_url = options.appcache_url,\n
gadget_list;\n
report_data;\n
return new RSVP.Queue()\n
.push(function() {\n
return gadget.generateInitialReportData(options);\n
})\n
.push(function(gadget_list) {\n
report_data = {\'gadget_list\': gadget_list};\n
return gadget.renderInitialReport(report_data);\n
})\n
.push(function() {\n
return gadget.renderFinalReport(report_data);\n
}, function(error) {\n
return gadget.redirect({\n
found: false\n
});\n
});\n
})\n
\n
.declareMethod("generateInitialReportData", function(options) {\n
var gadget = this,\n
appcache_url = options.appcache_url;\n
return new RSVP.Queue()\n
.push(function() {\n
return gadget.getDeclaredGadget(INTERFACE_GADGET_SCOPE);\n
...
...
@@ -292,22 +278,58 @@
return interface_gadget.getGadgetListFromAppcache(appcache_url);\n
})\n
.push(function(filtered_gadget_list) {\n
gadget_list = filtered_gadget_list;\n
return renderInitialReport(gadget, gadget_list);\n
gadget.props.gadget_list = filtered_gadget_list;\n
return filtered_gadget_list;\n
});\n
})\n
.push(function() {\n
return validateAppGadgetList(gadget, gadget_list);\n
}, function(error) {\n
return gadget.redirect({\n
found: false\n
\n
.declareMethod("renderInitialReport", function(options) {\n
var gadget = this,\n
gadget_list = options.gadget_list, \n
gadget_info_list = [],\n
row_list = [],\n
column_list = [\'Gadget Name\', \'Declared Interfaces\', \'Validation Status\'],\n
cell_list,\n
default_status = "In Progress",\n
content = \'\',\n
item;\n
for(item in gadget_list) {\n
cell_list = [];\n
cell_list.push({\n
default_class: "gadget_name",\n
value: gadget_list[item]\n
});\n
cell_list.push({\n
default_class: "interface_list",\n
value: default_status\n
});\n
cell_list.push({\n
default_class: "validation_status",\n
value: default_status\n
});\n
row_list.push({\n
"cell_list": cell_list,\n
"default_id": gadget_list[item].substr(0, gadget_list[item].indexOf(\'.\'))\n
});\n
}\n
content += report_widget_table({\n
column_list: column_list,\n
row_list: row_list\n
});\n
gadget.props.content_element.innerHTML = content;\n
$(gadget.props.element).trigger("create");\n
})\n
\n
.declareMethod("renderFinalReport", function(options) {\n
var gadget = this,\n
gadget_list = options.gadget_list;\n
return new RSVP.Queue()\n
.push(function() {\n
return validateAppGadgetList(gadget, gadget_list);\n
});\n
\n
.declareMethod("reportPageDummyMethod1", function(param1) {\n
// A dummy method to fulfil the interface implementation requirement.\n
return;\n
})\n
\n
/////////////////////////////////////////////////////////////////\n
// Acquired methods\n
/////////////////////////////////////////////////////////////////\n
...
...
@@ -472,7 +494,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
6.54878.32293.23654
</string>
</value>
<value>
<string>
94
7.20362.45778.153
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -490,7 +512,7 @@
</tuple>
<state>
<tuple>
<float>
144
6717974.4
3
</float>
<float>
144
8337757.1
3
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_panel_html.xml
View file @
70ffc069
...
...
@@ -109,6 +109,8 @@
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
\n
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
\n
<title>
Gadget Interface Validator Panel
</title>
\n
\n
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"gadget_interface_validator_interface_panel.html"
/>
\n
\n
<!-- renderjs -->
\n
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
\n
...
...
@@ -289,7 +291,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.
54879.52570.13994
</string>
</value>
<value>
<string>
946.
60372.36098.53043
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -307,7 +309,7 @@
</tuple>
<state>
<tuple>
<float>
144
6805712.99
</float>
<float>
144
8337351.68
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_router_html.xml
View file @
70ffc069
...
...
@@ -111,6 +111,8 @@
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
\n
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
\n
<title>
Gadget Interface Validator Router
</title>
\n
\n
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"gadget_interface_validator_interface_router.html"
/>
\n
\n
<!-- renderjs -->
\n
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
\n
...
...
@@ -121,6 +123,9 @@
\n
</head>
\n
<body>
\n
<div
data-gadget-url=
"gadget_interface.html"
\n
data-gadget-scope=
"interface_gadget"
\n
data-gadget-sandbox=
"public"
></div>
\n
<div
data-gadget-url=
"gadget_jio.html"
data-gadget-scope=
"jio_selection"
></div>
\n
</body>
\n
</html>
...
...
@@ -260,7 +265,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.
44766.54929.30600
</string>
</value>
<value>
<string>
946.
54881.55165.26555
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -278,7 +283,7 @@
</tuple>
<state>
<tuple>
<float>
144
6476270.36
</float>
<float>
144
8337407.75
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_validator_router_js.xml
View file @
70ffc069
...
...
@@ -108,7 +108,9 @@
\n
var MAIN_PAGE_PREFIX = "gadget_interface_validator_",\n
DEFAULT_PAGE = "form",\n
REDIRECT_TIMEOUT = 5000;\n
DEFAULT_GADGET_SOURCE = \'gadget_interface_validator.appcache\',\n
REDIRECT_TIMEOUT = 30000,\n
INTERFACE_GADGET_SCOPE = "interface_gadget";\n
\n
function listenHashChange(gadget) {\n
function extractHashAndDispatch(evt) {\n
...
...
@@ -147,6 +149,16 @@
window.dispatchEvent(event);\n
return result;\n
}\n
\n
function fetchPageType(gadget_url) {\n
var page_type = \'\',\n
key = \'_page_\';\n
if(gadget_url.indexOf(key) >
-1) {\n
page_type = gadget_url.substring(gadget_url.indexOf(key) + key.length,\n
gadget_url.lastIndexOf(\'.\'));\n
}\n
return page_type;\n
}\n
\n
rJS(window)\n
.ready(function (gadget) {\n
...
...
@@ -184,13 +196,42 @@
.declareMethod(\'route\', function (options) {\n
var gadget = this,\n
args = options.args,\n
page;\n
page,\n
page_type = \'\',\n
interface_name = \'\',\n
gadget_source;\n
if (args.interface_type) {\n
interface_name = MAIN_PAGE_PREFIX + "interface_" + args.interface_type + ".html";\n
} else if(args.interface_name) {\n
interface_name = args.interface_name;\n
}\n
\n
if(interface_name) {\n
gadget_source = args.gadget_source || DEFAULT_GADGET_SOURCE;\n
return new RSVP.Queue()\n
.push(function() {\n
return gadget.getDeclaredGadget(INTERFACE_GADGET_SCOPE);\n
})\n
.push(function(interface_gadget) {\n
return interface_gadget.getGadgetListImplementingInterface(interface_name, gadget_source);\n
})\n
.push(function(gadget_list) {\n
if(gadget_list.length > 0) {\n
page_type = fetchPageType(gadget_list[0]);\n
}\n
page = page_type || DEFAULT_PAGE;\n
return ({\n
url: MAIN_PAGE_PREFIX + "page_" + page + ".html",\n
options: args\n
});\n
});\n
} else {\n
page = args.page || DEFAULT_PAGE;\n
return {\n
url: MAIN_PAGE_PREFIX + "page_" + page + ".html",\n
options: args\n
};\n
}\n
})\n
\n
.declareAcquiredMethod(\'renderApplication\', \'renderApplication\')\n
...
...
@@ -345,7 +386,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.
58912.52724.48776
</string>
</value>
<value>
<string>
946.
60365.46558.23108
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -363,7 +404,7 @@
</tuple>
<state>
<tuple>
<float>
144
6805302.57
</float>
<float>
144
8337440.86
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment