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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Iliya Manolov
erp5
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
Show 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
re
import
json
import
json
portal
=
context
.
getPortalObject
()
Base_translateString
=
context
.
Base_translateString
Base_translateString
=
context
.
Base_translateString
...
@@ -12,9 +14,8 @@ tmp_re = re.compile(r"""/[{}]/g, """"")
...
@@ -12,9 +14,8 @@ tmp_re = re.compile(r"""/[{}]/g, """"")
translate_word
=
[]
translate_word
=
[]
web_page_list
=
context
.
Base_getListFileFromAppcache
(
only_html
=
1
)
for
web_page
in
portal
.
web_page_module
.
searchFolder
(
portal_type
=
'Web Page'
,
for
web_page
in
web_page_list
:
reference
=
context
.
Base_getListFileFromAppcache
(
only_html
=
1
)):
web_page
=
context
.
web_page_module
.
searchFolder
(
portal_type
=
'Web Page'
,
reference
=
web_page
)[
0
]
data
=
attribute_filter_re
.
findall
(
web_page
.
getTextContent
())
data
=
attribute_filter_re
.
findall
(
web_page
.
getTextContent
())
for
attribute
in
data
:
for
attribute
in
data
:
a
=
re
.
sub
(
r'[{|}]'
,
""
,
attribute
[
1
])
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