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
Labels
Merge Requests
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
596584c2
Commit
596584c2
authored
Apr 21, 2024
by
Jérome Perrin
Committed by
Arnaud Fontaine
Jul 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corporate_identity: pylint on py3
parent
6f513dbd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
22 deletions
+6
-22
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
...ortal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsContract.py
...l_skins/erp5_corporate_identity/WebPage_viewAsContract.py
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsLeaflet.py
...al_skins/erp5_corporate_identity/WebPage_viewAsLeaflet.py
+2
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsRelease.py
...al_skins/erp5_corporate_identity/WebPage_viewAsRelease.py
+2
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/WebSite_setOpenGraphMeta.py
...s/erp5_corporate_identity_web/WebSite_setOpenGraphMeta.py
+0
-16
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
View file @
596584c2
...
@@ -85,7 +85,7 @@ book_version = html_quote(override_document_version) if override_document_versio
...
@@ -85,7 +85,7 @@ book_version = html_quote(override_document_version) if override_document_versio
book_description
=
html_quote
(
override_document_description
)
if
override_document_description
else
book
.
getDescription
()
book_description
=
html_quote
(
override_document_description
)
if
override_document_description
else
book
.
getDescription
()
book_title
=
html_quote
(
override_document_title
)
if
override_document_title
else
book
.
getTitle
()
book_title
=
html_quote
(
override_document_title
)
if
override_document_title
else
book
.
getTitle
()
if
six
.
PY2
and
isinstance
(
book_content
,
unicod
e
):
if
six
.
PY2
and
isinstance
(
book_content
,
six
.
text_typ
e
):
book_content
=
book_content
.
encode
(
"UTF-8"
)
book_content
=
book_content
.
encode
(
"UTF-8"
)
# backcompat
# backcompat
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsContract.py
View file @
596584c2
...
@@ -37,7 +37,7 @@ contract_version = context.getVersion() or "001"
...
@@ -37,7 +37,7 @@ contract_version = context.getVersion() or "001"
contract_description
=
context
.
getDescription
()
contract_description
=
context
.
getDescription
()
contract_title
=
context
.
getTitle
()
contract_title
=
context
.
getTitle
()
if
six
.
PY2
and
isinstance
(
contract_content
,
unicod
e
):
if
six
.
PY2
and
isinstance
(
contract_content
,
six
.
text_typ
e
):
contract_content
=
contract_content
.
encode
(
"UTF-8"
)
contract_content
=
contract_content
.
encode
(
"UTF-8"
)
contract_history_section_list
=
re
.
findall
(
'<section.+?>.+?</section>'
,
contract_content
,
re
.
S
)
contract_history_section_list
=
re
.
findall
(
'<section.+?>.+?</section>'
,
contract_content
,
re
.
S
)
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsLeaflet.py
View file @
596584c2
...
@@ -149,9 +149,9 @@ if leaflet_display_side:
...
@@ -149,9 +149,9 @@ if leaflet_display_side:
#leaflet_content = leaflet_legalese.decode() + leaflet_content.decode()
#leaflet_content = leaflet_legalese.decode() + leaflet_content.decode()
if
six
.
PY2
:
if
six
.
PY2
:
if
isinstance
(
leaflet_legalese
,
unicod
e
):
if
isinstance
(
leaflet_legalese
,
six
.
text_typ
e
):
leaflet_legalese
=
leaflet_legalese
.
encode
(
"UTF-8"
)
leaflet_legalese
=
leaflet_legalese
.
encode
(
"UTF-8"
)
if
isinstance
(
leaflet_content
,
unicod
e
):
if
isinstance
(
leaflet_content
,
six
.
text_typ
e
):
leaflet_content
=
leaflet_content
.
encode
(
"UTF-8"
)
leaflet_content
=
leaflet_content
.
encode
(
"UTF-8"
)
leaflet_content
=
leaflet_legalese
+
leaflet_content
leaflet_content
=
leaflet_legalese
+
leaflet_content
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsRelease.py
View file @
596584c2
...
@@ -140,9 +140,9 @@ if release_display_about:
...
@@ -140,9 +140,9 @@ if release_display_about:
)
)
#release_content = release_content.decode() + release_about.decode()
#release_content = release_content.decode() + release_about.decode()
if
six
.
PY2
:
if
six
.
PY2
:
if
isinstance
(
release_content
,
unicod
e
):
if
isinstance
(
release_content
,
six
.
text_typ
e
):
release_content
=
release_content
.
encode
(
"UTF-8"
)
release_content
=
release_content
.
encode
(
"UTF-8"
)
if
isinstance
(
release_about
,
unicod
e
):
if
isinstance
(
release_about
,
six
.
text_typ
e
):
release_about
=
release_about
.
encode
(
"UTF-8"
)
release_about
=
release_about
.
encode
(
"UTF-8"
)
release_content
=
release_content
+
release_about
release_content
=
release_content
+
release_about
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/WebSite_setOpenGraphMeta.py
View file @
596584c2
...
@@ -71,24 +71,8 @@ if portal_type == 'Web Page':
...
@@ -71,24 +71,8 @@ if portal_type == 'Web Page':
if
portal_type
==
'Web Section'
:
if
portal_type
==
'Web Section'
:
websection
=
context
websection
=
context
return
generateOpenGraphParamaters
(
websection
)
return
generateOpenGraphParamaters
(
websection
)
"""
default_document = websection.getDefaultDocumentValue()
if default_document is not None:
return generateOpenGraphParamaters(default_document, True)
else:
return generateOpenGraphParamaters(websection)
"""
if
portal_type
==
'Web Site'
:
if
portal_type
==
'Web Site'
:
return
generateOpenGraphParamaters
(
website
)
return
generateOpenGraphParamaters
(
website
)
"""
default_document = website.getDefaultDocumentValue()
if default_document is not None:
return generateOpenGraphParamaters(default_document, True)
else:
return generateOpenGraphParamaters(website)
"""
return
''
return
''
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