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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
7f68a76a
Commit
7f68a76a
authored
Aug 11, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
erp5_adminstration: Extend what can be ignored
See merge request
!1477
parents
764aba45
3d31a305
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
6 deletions
+28
-6
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpInstalledBusinessTemplateList.py
...inistration/ERP5Site_dumpInstalledBusinessTemplateList.py
+4
-1
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpInstalledBusinessTemplateList.xml
...nistration/ERP5Site_dumpInstalledBusinessTemplateList.xml
+1
-1
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPortalSkinsContent.py
...ns/erp5_administration/ERP5Site_dumpPortalSkinsContent.py
+11
-1
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPortalSkinsContent.xml
...s/erp5_administration/ERP5Site_dumpPortalSkinsContent.xml
+1
-1
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPropertySheetList.py
...ins/erp5_administration/ERP5Site_dumpPropertySheetList.py
+6
-0
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPropertySheetList.xml
...ns/erp5_administration/ERP5Site_dumpPropertySheetList.xml
+1
-1
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpSkinProperty.py
...al_skins/erp5_administration/ERP5Site_dumpSkinProperty.py
+3
-0
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpSkinProperty.xml
...l_skins/erp5_administration/ERP5Site_dumpSkinProperty.xml
+1
-1
No files found.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpInstalledBusinessTemplateList.py
View file @
7f68a76a
if
ignore_business_template_list
is
None
:
ignore_business_template_list
=
[]
for
business_template
in
sorted
(
context
.
getPortalObject
().
portal_templates
.
contentValues
(
portal_type
=
'Business Template'
),
for
business_template
in
sorted
(
context
.
getPortalObject
().
portal_templates
.
contentValues
(
portal_type
=
'Business Template'
),
key
=
lambda
x
:
x
.
getTitle
()):
key
=
lambda
x
:
x
.
getTitle
()):
if
business_template
.
getInstallationState
()
==
'installed'
:
if
business_template
.
getInstallationState
()
==
'installed'
and
\
business_template
.
getTitle
()
not
in
ignore_business_template_list
:
print
business_template
.
getTitle
()
print
business_template
.
getTitle
()
return
printed
return
printed
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpInstalledBusinessTemplateList.xml
View file @
7f68a76a
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
ignore_business_template_list=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPortalSkinsContent.py
View file @
7f68a76a
import
hashlib
import
hashlib
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
if
ignore_folder_list
is
None
:
ignore_folder_list
=
[]
if
ignore_skin_list
is
None
:
ignore_skin_list
=
[]
if
ignore_custom
:
ignore_folder_list
.
append
(
"custom"
)
def
getSkinHash
(
skin
,
skin_container
):
def
getSkinHash
(
skin
,
skin_container
):
content
=
''
content
=
''
...
@@ -24,9 +32,11 @@ def getSkinHash(skin, skin_container):
...
@@ -24,9 +32,11 @@ def getSkinHash(skin, skin_container):
for
skin_folder
in
portal
.
portal_skins
.
objectValues
(
'Folder'
):
for
skin_folder
in
portal
.
portal_skins
.
objectValues
(
'Folder'
):
if
ignore_custom
and
skin_folder
.
getId
()
==
'custom'
:
if
skin_folder
.
getId
()
in
ignore_folder_list
:
continue
continue
for
skin
in
skin_folder
.
objectValues
():
for
skin
in
skin_folder
.
objectValues
():
if
skin
.
getId
()
in
ignore_skin_list
:
continue
print
getSkinHash
(
skin
,
skin_folder
)
print
getSkinHash
(
skin
,
skin_folder
)
if
include_workflow_scripts
:
if
include_workflow_scripts
:
...
...
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPortalSkinsContent.xml
View file @
7f68a76a
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
ignore_custom=True, include_workflow_scripts=True
</string>
</value>
<value>
<string>
ignore_custom=True, include_workflow_scripts=True
, ignore_folder_list=None, ignore_skin_list=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPropertySheetList.py
View file @
7f68a76a
if
ignore_property_sheet_list
is
None
:
ignore_property_sheet_list
=
[]
for
ps
in
sorted
(
context
.
getPortalObject
().
portal_property_sheets
.
contentValues
(),
key
=
lambda
x
:
x
.
getId
()):
for
ps
in
sorted
(
context
.
getPortalObject
().
portal_property_sheets
.
contentValues
(),
key
=
lambda
x
:
x
.
getId
()):
for
pd
in
sorted
(
ps
.
contentValues
(),
key
=
lambda
x
:
x
.
getId
()):
for
pd
in
sorted
(
ps
.
contentValues
(),
key
=
lambda
x
:
x
.
getId
()):
ps_id
=
ps
.
getId
()
if
ps_id
in
ignore_property_sheet_list
:
continue
print
ps
.
getId
()
print
ps
.
getId
()
info_list
=
[
'id'
,
'portal_type'
,
'reference'
]
info_list
=
[
'id'
,
'portal_type'
,
'reference'
]
std_prop_list
=
[
'elementary_type'
,
'property_default'
,
'storage_id'
,
'multivaluated'
,
'range'
,
'preference'
,
'read_permission'
,
'write_permission'
,
'translatable'
,
'translation_domain'
]
std_prop_list
=
[
'elementary_type'
,
'property_default'
,
'storage_id'
,
'multivaluated'
,
'range'
,
'preference'
,
'read_permission'
,
'write_permission'
,
'translatable'
,
'translation_domain'
]
...
...
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPropertySheetList.xml
View file @
7f68a76a
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
ignore_property_sheet_list=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpSkinProperty.py
View file @
7f68a76a
...
@@ -10,5 +10,8 @@
...
@@ -10,5 +10,8 @@
skin_tool
=
context
.
getPortalObject
().
portal_skins
skin_tool
=
context
.
getPortalObject
().
portal_skins
for
name
,
layers
in
skin_tool
.
getSkinPaths
():
for
name
,
layers
in
skin_tool
.
getSkinPaths
():
for
layer
in
layers
.
split
(
','
):
for
layer
in
layers
.
split
(
','
):
if
ignore_skin_folder_list
is
not
None
and
\
layer
in
ignore_skin_folder_list
:
continue
print
'%s,%s'
%
(
name
,
layer
)
print
'%s,%s'
%
(
name
,
layer
)
return
printed
return
printed
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpSkinProperty.xml
View file @
7f68a76a
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
ignore_skin_folder_list=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
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