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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
994ba134
Commit
994ba134
authored
Feb 15, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ActivityTool: Reuse existing import instead of CMFCore's underware.
parent
3b781bc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+2
-2
No files found.
product/CMFActivity/ActivityTool.py
View file @
994ba134
...
...
@@ -45,7 +45,7 @@ from AccessControl.SecurityManagement import noSecurityManager
from
AccessControl.SecurityManagement
import
setSecurityManager
from
AccessControl.SecurityManagement
import
getSecurityManager
from
AccessControl.User
import
system
as
system_user
from
Products.CMFCore.utils
import
UniqueObject
,
_getAuthenticatedUser
from
Products.CMFCore.utils
import
UniqueObject
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
from
Acquisition
import
aq_base
,
aq_inner
,
aq_parent
from
ActivityBuffer
import
ActivityBuffer
...
...
@@ -182,7 +182,7 @@ class Message(BaseMessage):
# was generated.
# Strip last stack entry, since it will always be the same.
self
.
call_traceback
=
''
.
join
(
format_list
(
extract_stack
()[:
-
1
]))
self
.
user_name
=
_getAuthenticatedUser
(
self
).
getIdOrUserName
()
self
.
user_name
=
getSecurityManager
().
getUser
(
).
getIdOrUserName
()
# Store REQUEST Info
self
.
request_info
=
{}
if
request
is
not
None
:
...
...
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