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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
8d764c23
Commit
8d764c23
authored
May 12, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFActivity: make the dummy group method run the grouped message with correct user
parent
da234001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+8
-0
No files found.
product/CMFActivity/ActivityTool.py
View file @
8d764c23
...
@@ -1368,11 +1368,19 @@ class ActivityTool (Folder, UniqueObject):
...
@@ -1368,11 +1368,19 @@ class ActivityTool (Folder, UniqueObject):
class
dummyGroupMethod
(
object
):
class
dummyGroupMethod
(
object
):
def
__bobo_traverse__
(
self
,
REQUEST
,
method_id
):
def
__bobo_traverse__
(
self
,
REQUEST
,
method_id
):
def
group_method
(
message_list
):
def
group_method
(
message_list
):
user_name
=
None
sm
=
getSecurityManager
()
try
:
try
:
for
m
in
message_list
:
for
m
in
message_list
:
message
=
m
.
_message
if
user_name
!=
message
.
user_name
:
user_name
=
message
.
user_name
message
.
changeUser
(
user_name
,
m
.
object
)
m
.
result
=
getattr
(
m
.
object
,
method_id
)(
*
m
.
args
,
**
m
.
kw
)
m
.
result
=
getattr
(
m
.
object
,
method_id
)(
*
m
.
args
,
**
m
.
kw
)
except
Exception
:
except
Exception
:
m
.
raised
()
m
.
raised
()
finally
:
setSecurityManager
(
sm
)
return
group_method
return
group_method
dummyGroupMethod
=
dummyGroupMethod
()
dummyGroupMethod
=
dummyGroupMethod
()
...
...
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