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
73aef12e
Commit
73aef12e
authored
May 11, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity*: activate coding style
parent
807b1fe0
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
87 deletions
+14
-87
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
...ortal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
+0
-3
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
..._skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
+9
-9
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/WebSection_getLastestDocumentList.py
...rporate_identity_web/WebSection_getLastestDocumentList.py
+4
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/WebSection_getLastestDocumentList.xml
...porate_identity_web/WebSection_getLastestDocumentList.xml
+1
-1
bt5/erp5_corporate_identity/bt/skip_coding_style_test
bt5/erp5_corporate_identity/bt/skip_coding_style_test
+0
-1
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/xxxZuite_setSkipSave.py
...kins/erp5_corporate_identity_test/xxxZuite_setSkipSave.py
+0
-8
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/xxxZuite_setSkipSave.xml
...ins/erp5_corporate_identity_test/xxxZuite_setSkipSave.xml
+0
-62
bt5/erp5_corporate_identity_test/bt/skip_coding_style_test
bt5/erp5_corporate_identity_test/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
View file @
73aef12e
...
@@ -90,9 +90,6 @@ book_title = html_quote(override_document_title) if override_document_title else
...
@@ -90,9 +90,6 @@ book_title = html_quote(override_document_title) if override_document_title else
if
isinstance
(
book_content
,
unicode
):
if
isinstance
(
book_content
,
unicode
):
book_content
=
book_content
.
encode
(
"UTF-8"
)
book_content
=
book_content
.
encode
(
"UTF-8"
)
# backcompat
book_history_section_list
=
re
.
findall
(
'<section*?>.+?</section>'
,
book_content
,
re
.
S
)
# override for tests
# override for tests
if
override_batch_mode
:
if
override_batch_mode
:
book_modification_date
=
DateTime
(
"1976-11-04"
)
book_modification_date
=
DateTime
(
"1976-11-04"
)
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
View file @
73aef12e
...
@@ -48,8 +48,8 @@ def getDetails(my_content):
...
@@ -48,8 +48,8 @@ def getDetails(my_content):
def
getDetailsList
(
my_slide
):
def
getDetailsList
(
my_slide
):
return
re
.
findall
(
r'<details.*?>.*?<\
/de
tails>'
,
my_slide
,
re
.
S
)
return
re
.
findall
(
r'<details.*?>.*?<\
/de
tails>'
,
my_slide
,
re
.
S
)
def
getNestedSection
(
my_content
):
#
def getNestedSection(my_content):
return
my_content
.
find
(
"<section"
)
>
-
1
#
return my_content.find("<section") > -1
def
splitMultipleDetails
(
my_content
):
def
splitMultipleDetails
(
my_content
):
for
slide
in
getSlideDetailsList
(
my_content
):
for
slide
in
getSlideDetailsList
(
my_content
):
...
@@ -63,13 +63,13 @@ def splitMultipleDetails(my_content):
...
@@ -63,13 +63,13 @@ def splitMultipleDetails(my_content):
my_content
=
my_content
.
replace
(
detail
,
''
.
join
([
detail
,
details_separator
]))
my_content
=
my_content
.
replace
(
detail
,
''
.
join
([
detail
,
details_separator
]))
return
my_content
return
my_content
def
removeSlidesWithoutDetailsFromNotes
(
my_content
):
#
def removeSlidesWithoutDetailsFromNotes(my_content):
for
slide
in
getSlideList
(
my_content
):
#
for slide in getSlideList(my_content):
if
getNestedSection
(
slide
)
==
False
:
#
if getNestedSection(slide) == False:
my_content
=
my_content
.
replace
(
slide
,
blank
)
#
my_content = my_content.replace(slide, blank)
content
=
my_content
.
replace
(
'<section></section>'
,
blank
)
#
content = my_content.replace('<section></section>', blank)
content
=
re
.
sub
(
r'<section class="[^"]*"></section>'
,
blank
,
content
)
#
content = re.sub(r'<section class="[^"]*"></section>', blank, content)
return
content
#
return content
#def removeSectionTags(my_content):
#def removeSectionTags(my_content):
# content = re.sub(r'<section class="[^"]*">', blank, my_content)
# content = re.sub(r'<section class="[^"]*">', blank, my_content)
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/WebSection_getLastestDocumentList.py
View file @
73aef12e
...
@@ -22,8 +22,10 @@ def getUid(publication_section):
...
@@ -22,8 +22,10 @@ def getUid(publication_section):
publication_section_smallcaps
=
publication_section
.
lower
()
publication_section_smallcaps
=
publication_section
.
lower
()
return
portal
.
portal_categories
.
publication_section
[
publication_section_smallcaps
].
getUid
()
return
portal
.
portal_categories
.
publication_section
[
publication_section_smallcaps
].
getUid
()
if
len
(
publication_section_list
)
>
0
:
if
publication_section_list
is
None
:
publication_section_uid_list
=
map
(
lambda
x
:
getUid
(
x
),
publication_section_list
)
publication_section_uid_list
=
[]
else
:
publication_section_uid_list
=
[
getUid
(
x
)
for
x
in
publication_section_list
]
# beware of different dates: modificatio_date, creation_date, effective_date
# beware of different dates: modificatio_date, creation_date, effective_date
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_web/WebSection_getLastestDocumentList.xml
View file @
73aef12e
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
upper_limit=4, publication_section_list=
[]
</string>
</value>
<value>
<string>
upper_limit=4, publication_section_list=
None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_corporate_identity/bt/skip_coding_style_test
deleted
100644 → 0
View file @
807b1fe0
1
\ No newline at end of file
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/xxxZuite_setSkipSave.py
deleted
100644 → 0
View file @
807b1fe0
"""
================================================================================
Add this script to custom skin selection to update test comparison files
================================================================================
"""
# parameters (* default)
# ------------------------------------------------------------------------------
return
True
bt5/erp5_corporate_identity_test/SkinTemplateItem/portal_skins/erp5_corporate_identity_test/xxxZuite_setSkipSave.xml
deleted
100644 → 0
View file @
807b1fe0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
xxxZuite_setSkipSave
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity_test/bt/skip_coding_style_test
deleted
100644 → 0
View file @
807b1fe0
1
\ No newline at end of file
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