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
1
Issues
1
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
Roque
erp5
Commits
22e7763d
Commit
22e7763d
authored
Dec 27, 2012
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove duplicate of code
parent
6c3622c9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
74 deletions
+8
-74
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+8
-12
product/CMFActivity/skins/activity/SQLDict_deleteMessage.zsql
...uct/CMFActivity/skins/activity/SQLDict_deleteMessage.zsql
+0
-14
product/CMFActivity/skins/activity/SQLDict_restartMessage.zsql
...ct/CMFActivity/skins/activity/SQLDict_restartMessage.zsql
+0
-17
product/CMFActivity/skins/activity/SQLQueue_deleteMessage.zsql
...ct/CMFActivity/skins/activity/SQLQueue_deleteMessage.zsql
+0
-14
product/CMFActivity/skins/activity/SQLQueue_restartMessage.zsql
...t/CMFActivity/skins/activity/SQLQueue_restartMessage.zsql
+0
-17
No files found.
product/CMFActivity/ActivityTool.py
View file @
22e7763d
...
...
@@ -1302,12 +1302,10 @@ class ActivityTool (Folder, UniqueObject):
"""
Restart one or several messages
"""
if
activity
==
'SQLQueue'
:
for
message_uid
in
message_uid_list
:
self
.
SQLQueue_restartMessage
(
message_uid
=
message_uid
)
else
:
for
message_uid
in
message_uid_list
:
self
.
SQLDict_restartMessage
(
message_uid
=
message_uid
)
if
not
(
isinstance
(
message_uid_list
,
list
)):
message_uid_list
=
[
message_uid_list
]
self
.
SQLBase_makeMessageListAvailable
(
table
=
activity_dict
[
activity
].
sql_table
,
uid
=
message_uid_list
)
if
REQUEST
is
not
None
:
return
REQUEST
.
RESPONSE
.
redirect
(
'%s/%s'
%
(
self
.
absolute_url
(),
'view'
))
...
...
@@ -1331,12 +1329,10 @@ class ActivityTool (Folder, UniqueObject):
"""
Delete one or several messages
"""
if
activity
==
'SQLQueue'
:
for
message_uid
in
message_uid_list
:
self
.
SQLQueue_deleteMessage
(
message_uid
=
message_uid
)
else
:
for
message_uid
in
message_uid_list
:
self
.
SQLDict_deleteMessage
(
message_uid
=
message_uid
)
if
not
(
isinstance
(
message_uid_list
,
list
)):
message_uid_list
=
[
message_uid_list
]
self
.
SQLBase_delMessage
(
table
=
activity_dict
[
activity
].
sql_table
,
uid
=
message_uid_list
)
if
REQUEST
is
not
None
:
return
REQUEST
.
RESPONSE
.
redirect
(
'%s/%s'
%
(
self
.
absolute_url
(),
'view'
))
...
...
product/CMFActivity/skins/activity/SQLDict_deleteMessage.zsql
deleted
100644 → 0
View file @
6c3622c9
<dtml-comment>
title:
connection_id:cmf_activity_sql_connection
max_rows:0
max_cache:0
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>message_uid</params>
DELETE FROM
message
WHERE
uid=<dtml-sqlvar message_uid type="string">
product/CMFActivity/skins/activity/SQLDict_restartMessage.zsql
deleted
100644 → 0
View file @
6c3622c9
<dtml-comment>
title:
connection_id:cmf_activity_sql_connection
max_rows:1
max_cache:0
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>message_uid</params>
UPDATE
message
SET
processing_node=0,
processing=0
WHERE
uid=<dtml-sqlvar message_uid type="string">
product/CMFActivity/skins/activity/SQLQueue_deleteMessage.zsql
deleted
100644 → 0
View file @
6c3622c9
<dtml-comment>
title:
connection_id:cmf_activity_sql_connection
max_rows:0
max_cache:0
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>message_uid</params>
DELETE FROM
message_queue
WHERE
uid=<dtml-sqlvar message_uid type="string">
product/CMFActivity/skins/activity/SQLQueue_restartMessage.zsql
deleted
100644 → 0
View file @
6c3622c9
<dtml-comment>
title:
connection_id:cmf_activity_sql_connection
max_rows:1
max_cache:0
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>message_uid</params>
UPDATE
message_queue
SET
processing_node=0,
processing=0
WHERE
uid=<dtml-sqlvar message_uid type="string">
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