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
138
Merge Requests
138
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
a8d76e00
Commit
a8d76e00
authored
Apr 20, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
administration: py3
parent
709b71ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Base_cleanupRolesAndUsersTable.py
...ins/erp5_administration/Base_cleanupRolesAndUsersTable.py
+3
-1
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPortalSkinsContent.py
...ns/erp5_administration/ERP5Site_dumpPortalSkinsContent.py
+2
-2
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_profileContext.py
...rtal_skins/erp5_administration/ERP5Site_profileContext.py
+1
-1
No files found.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Base_cleanupRolesAndUsersTable.py
View file @
a8d76e00
...
...
@@ -3,7 +3,9 @@ security_uid_field_list = [x + ("_" if x != "" else "") + "security_uid" for x i
security_uid_set_list
=
[]
for
security_uid_field
in
security_uid_field_list
:
security_uid_set_list
.
append
({
getattr
(
x
,
security_uid_field
)
for
x
in
context
.
z_get_referenced_security_uid_set_for
(
security_uid_field
=
security_uid_field
)})
security_uid_set
=
reduce
(
lambda
p
,
v
:
p
.
union
(
v
),
security_uid_set_list
)
security_uid_set
=
set
()
for
s
in
security_uid_set_list
:
security_uid_set
=
security_uid_set
.
union
(
s
)
filtered_set
=
context
.
Base_filterSecurityUidDict
(
portal
.
portal_catalog
.
getSQLCatalog
(
catalog_id
).
security_uid_dict
,
security_uid_set
...
...
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_dumpPortalSkinsContent.py
View file @
a8d76e00
...
...
@@ -19,12 +19,12 @@ def getSkinHash(skin, skin_container):
elif
skin
.
meta_type
in
(
'ERP5 Form'
,
):
try
:
content
=
skin
.
formXML
()
if
isinstance
(
content
,
unicode
):
if
not
isinstance
(
content
,
bytes
):
content
=
content
.
encode
(
'utf8'
,
'repr'
)
except
AttributeError
as
e
:
# This can happen with dead proxy fields.
content
=
"broken form %s"
%
e
content
=
'ignore'
content
=
b
'ignore'
m
=
hashlib
.
md5
()
m
.
update
(
content
)
content_hash
=
m
.
hexdigest
()
...
...
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_profileContext.py
View file @
a8d76e00
...
...
@@ -47,4 +47,4 @@ else:
response
.
setHeader
(
'content-type'
,
content_type
)
response
.
setHeader
(
'content-disposition'
,
'attachment; filename="'
+
filename
+
'"'
)
response
.
write
(
data
)
raise
Exception
(
'profiling'
)
raise
RuntimeError
(
'profiling'
)
\ 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