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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
18e301d0
Commit
18e301d0
authored
Feb 16, 2024
by
Jérome Perrin
Committed by
Kazuhiko Shiozaki
Jul 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFActivity, ERP5Type: prevent some "Expected Text" warnings from transaction
parent
12370ec1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+3
-1
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+1
-1
No files found.
product/CMFActivity/ActivityTool.py
View file @
18e301d0
...
@@ -327,7 +327,9 @@ class Message(BaseMessage):
...
@@ -327,7 +327,9 @@ class Message(BaseMessage):
user
=
user
.
__of__
(
user_folder
)
user
=
user
.
__of__
(
user_folder
)
newSecurityManager
(
None
,
user
)
newSecurityManager
(
None
,
user
)
if
annotate_transaction
:
if
annotate_transaction
:
transaction
.
get
().
setUser
(
user_name
,
'/'
.
join
(
user_folder
.
getPhysicalPath
()))
if
six
.
PY2
:
user_name
=
user_name
.
decode
(
'utf-8'
)
transaction
.
get
().
setUser
(
user_name
,
u'/'
.
join
(
user_folder
.
getPhysicalPath
()))
else
:
else
:
LOG
(
"CMFActivity"
,
WARNING
,
LOG
(
"CMFActivity"
,
WARNING
,
"Unable to find user %r in the portal"
%
user_name
)
"Unable to find user %r in the portal"
%
user_name
)
...
...
product/ERP5/ERP5Site.py
View file @
18e301d0
...
@@ -2634,7 +2634,7 @@ def initialize(self):
...
@@ -2634,7 +2634,7 @@ def initialize(self):
manage_addERP5Site
(
app
.
__of__
(
RequestContainer
(
REQUEST
=
REQUEST
)),
manage_addERP5Site
(
app
.
__of__
(
RequestContainer
(
REQUEST
=
REQUEST
)),
**
{
k
:
kw
.
get
(
k
,
v
)
for
k
,
v
in
six
.
iteritems
(
default_kw
)
**
{
k
:
kw
.
get
(
k
,
v
)
for
k
,
v
in
six
.
iteritems
(
default_kw
)
if
isinstance
(
v
,
str
)})
if
isinstance
(
v
,
str
)})
transaction
.
get
().
note
(
'Created '
+
meta_type
)
transaction
.
get
().
note
(
u
'Created '
+
meta_type
)
transaction
.
commit
()
transaction
.
commit
()
break
break
except
OperationalError
as
e
:
except
OperationalError
as
e
:
...
...
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