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
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
erp5
Commits
73014b1a
Commit
73014b1a
authored
Feb 16, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFActivity, ERP5Type: prevent some "Expected Text" warnings from transaction
parent
6026d1b5
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 @
73014b1a
...
@@ -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 @
73014b1a
...
@@ -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