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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yusei Tahara
erp5
Commits
ef5cec2d
Commit
ef5cec2d
authored
Oct 30, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web/dms] Use renderJS to display web page content
rJS gadget uses text content as value
parent
3d8ce06c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_web/WebPage_view/my_text_content.xml
...ortal_skins/erp5_dms_web/WebPage_view/my_text_content.xml
+1
-1
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_view/my_text_content.xml
...em/portal_skins/erp5_web/WebPage_view/my_text_content.xml
+1
-1
product/ERP5/tests/testEditorField.py
product/ERP5/tests/testEditorField.py
+4
-4
No files found.
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms_web/WebPage_view/my_text_content.xml
View file @
ef5cec2d
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
text_content
</string>
</value>
<value>
<string>
my_
text_content
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
form_id
</string>
</key>
<key>
<string>
form_id
</string>
</key>
...
...
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_view/my_text_content.xml
View file @
ef5cec2d
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
text_content
</string>
</value>
<value>
<string>
my_
text_content
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
form_id
</string>
</key>
<key>
<string>
form_id
</string>
</key>
...
...
product/ERP5/tests/testEditorField.py
View file @
ef5cec2d
...
@@ -325,7 +325,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
...
@@ -325,7 +325,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
# Make sure default view is read only
# Make sure default view is read only
html_text
=
page
.
WebPage_view
()
html_text
=
page
.
WebPage_view
()
self
.
assertFalse
(
page
.
WebPage_view
.
my_text_content
.
get_value
(
'editable'
))
self
.
assertFalse
(
page
.
WebPage_view
.
my_text_content
.
get_value
(
'editable'
))
self
.
assertTrue
(
self
.
_isReadOnlyEditor
(
html_text
,
page
,
page
.
asStrippedHTML
()))
self
.
assertTrue
(
self
.
_isReadOnlyEditor
(
html_text
,
page
,
page
.
getTextContent
()))
def
test_EditWebPageFCKEditorText
(
self
):
def
test_EditWebPageFCKEditorText
(
self
):
"""
"""
...
@@ -347,7 +347,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
...
@@ -347,7 +347,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
# Make sure default view is read only
# Make sure default view is read only
html_text
=
page
.
WebPage_view
()
html_text
=
page
.
WebPage_view
()
self
.
assertFalse
(
page
.
WebPage_view
.
my_text_content
.
get_value
(
'editable'
))
self
.
assertFalse
(
page
.
WebPage_view
.
my_text_content
.
get_value
(
'editable'
))
self
.
assertTrue
(
self
.
_isReadOnlyEditor
(
html_text
,
page
,
page
.
asStrippedHTML
()))
self
.
assertTrue
(
self
.
_isReadOnlyEditor
(
html_text
,
page
,
page
.
getTextContent
()))
def
test_EditWebPageTextAreaHTML
(
self
):
def
test_EditWebPageTextAreaHTML
(
self
):
"""
"""
...
@@ -369,7 +369,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
...
@@ -369,7 +369,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
# Make sure default view is read only
# Make sure default view is read only
html_text
=
page
.
WebPage_view
()
html_text
=
page
.
WebPage_view
()
self
.
assertFalse
(
page
.
WebPage_view
.
my_text_content
.
get_value
(
'editable'
))
self
.
assertFalse
(
page
.
WebPage_view
.
my_text_content
.
get_value
(
'editable'
))
self
.
assertTrue
(
self
.
_isReadOnlyEditor
(
html_text
,
page
,
page
.
asStrippedHTML
()))
self
.
assertTrue
(
self
.
_isReadOnlyEditor
(
html_text
,
page
,
page
.
getTextContent
()))
def
test_EditWebPageTextAreaText
(
self
):
def
test_EditWebPageTextAreaText
(
self
):
"""
"""
...
@@ -391,7 +391,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
...
@@ -391,7 +391,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
# Make sure default view is read only
# Make sure default view is read only
html_text
=
page
.
WebPage_view
()
html_text
=
page
.
WebPage_view
()
self
.
assertFalse
(
page
.
WebPage_view
.
my_text_content
.
get_value
(
'editable'
))
self
.
assertFalse
(
page
.
WebPage_view
.
my_text_content
.
get_value
(
'editable'
))
self
.
assertTrue
(
self
.
_isReadOnlyEditor
(
html_text
,
page
,
page
.
asStrippedHTML
()))
self
.
assertTrue
(
self
.
_isReadOnlyEditor
(
html_text
,
page
,
page
.
getTextContent
()))
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
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