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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
bfa45fbc
Commit
bfa45fbc
authored
May 31, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form: remove useless gadget properties that were inherited from string fields
Gadget fields from erp5_core are also cleaned up.
parent
c47a9104
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
75 deletions
+5
-75
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewFieldLibrary/my_gadget_field.xml
...skins/erp5_core/Base_viewFieldLibrary/my_gadget_field.xml
+0
-36
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewFieldLibrary/my_iframe_gadget_field.xml
...rp5_core/Base_viewFieldLibrary/my_iframe_gadget_field.xml
+0
-36
product/ERP5Form/GadgetField.py
product/ERP5Form/GadgetField.py
+5
-3
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewFieldLibrary/my_gadget_field.xml
View file @
bfa45fbc
...
@@ -45,14 +45,6 @@
...
@@ -45,14 +45,6 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
display_maxwidth
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
editable
</string>
</key>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -77,10 +69,6 @@
...
@@ -77,10 +69,6 @@
<key>
<string>
hidden
</string>
</key>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
input_type
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -116,14 +104,6 @@
...
@@ -116,14 +104,6 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
display_maxwidth
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
editable
</string>
</key>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -148,10 +128,6 @@
...
@@ -148,10 +128,6 @@
<key>
<string>
hidden
</string>
</key>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
input_type
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -187,14 +163,6 @@
...
@@ -187,14 +163,6 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
display_maxwidth
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<int>
20
</int>
</value>
</item>
<item>
<item>
<key>
<string>
editable
</string>
</key>
<key>
<string>
editable
</string>
</key>
<value>
<int>
1
</int>
</value>
<value>
<int>
1
</int>
</value>
...
@@ -219,10 +187,6 @@
...
@@ -219,10 +187,6 @@
<key>
<string>
hidden
</string>
</key>
<key>
<string>
hidden
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
0
</int>
</value>
</item>
</item>
<item>
<key>
<string>
input_type
</string>
</key>
<value>
<string>
text
</string>
</value>
</item>
<item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewFieldLibrary/my_iframe_gadget_field.xml
View file @
bfa45fbc
...
@@ -45,14 +45,6 @@
...
@@ -45,14 +45,6 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
display_maxwidth
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
editable
</string>
</key>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -77,10 +69,6 @@
...
@@ -77,10 +69,6 @@
<key>
<string>
hidden
</string>
</key>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
input_type
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -116,14 +104,6 @@
...
@@ -116,14 +104,6 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
display_maxwidth
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
editable
</string>
</key>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -148,10 +128,6 @@
...
@@ -148,10 +128,6 @@
<key>
<string>
hidden
</string>
</key>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
input_type
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -187,14 +163,6 @@
...
@@ -187,14 +163,6 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
display_maxwidth
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<int>
20
</int>
</value>
</item>
<item>
<item>
<key>
<string>
editable
</string>
</key>
<key>
<string>
editable
</string>
</key>
<value>
<int>
1
</int>
</value>
<value>
<int>
1
</int>
</value>
...
@@ -219,10 +187,6 @@
...
@@ -219,10 +187,6 @@
<key>
<string>
hidden
</string>
</key>
<key>
<string>
hidden
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
0
</int>
</value>
</item>
</item>
<item>
<key>
<string>
input_type
</string>
</key>
<value>
<string>
text
</string>
</value>
</item>
<item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string>
iframe
</string>
</value>
<value>
<string>
iframe
</string>
</value>
...
...
product/ERP5Form/GadgetField.py
View file @
bfa45fbc
...
@@ -5,12 +5,14 @@ from Products.Formulator import Validator
...
@@ -5,12 +5,14 @@ from Products.Formulator import Validator
from
zLOG
import
LOG
,
ERROR
from
zLOG
import
LOG
,
ERROR
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
class
GadgetWidget
(
Widget
.
Text
Widget
):
class
GadgetWidget
(
Widget
.
Widget
):
"""
"""
A widget that displays a renderjs gadget
A widget that displays a renderjs gadget
"""
"""
property_names
=
Widget
.
TextWidget
.
property_names
+
\
property_names
=
Widget
.
Widget
.
property_names
+
\
[
'gadget_url'
,
'js_sandbox'
]
[
'gadget_url'
,
'js_sandbox'
,
'extra'
]
default
=
Widget
.
TextWidget
.
default
gadget_url
=
fields
.
StringField
(
'gadget_url'
,
gadget_url
=
fields
.
StringField
(
'gadget_url'
,
title
=
'Gadget Url'
,
title
=
'Gadget Url'
,
...
...
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