Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
74ca0bec
Commit
74ca0bec
authored
Mar 27, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Do not expect all HTML pages to be in web page module
parent
eb696886
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/Base_createTranslateData.py
...ortal_skins/erp5_web_renderjs/Base_createTranslateData.py
+4
-3
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/Base_createTranslateData.py
View file @
74ca0bec
import
re
import
json
portal
=
context
.
getPortalObject
()
Base_translateString
=
context
.
Base_translateString
...
...
@@ -12,9 +14,8 @@ tmp_re = re.compile(r"""/[{}]/g, """"")
translate_word
=
[]
web_page_list
=
context
.
Base_getListFileFromAppcache
(
only_html
=
1
)
for
web_page
in
web_page_list
:
web_page
=
context
.
web_page_module
.
searchFolder
(
portal_type
=
'Web Page'
,
reference
=
web_page
)[
0
]
for
web_page
in
portal
.
web_page_module
.
searchFolder
(
portal_type
=
'Web Page'
,
reference
=
context
.
Base_getListFileFromAppcache
(
only_html
=
1
)):
data
=
attribute_filter_re
.
findall
(
web_page
.
getTextContent
())
for
attribute
in
data
:
a
=
re
.
sub
(
r'[{|}]'
,
""
,
attribute
[
1
])
...
...
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