Commit 606a1fed authored by Julien Muchembled's avatar Julien Muchembled

Display in "Activities" tab if activities are in SQLDict or SQLQueue.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27626 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 420b3422
......@@ -48,12 +48,14 @@ class SQLBase:
def getMessageList(self, activity_tool, processing_node=None,
include_processing=0, **kw):
# YO: reading all lines might cause a deadlock
class_name = self.__class__.__name__
readMessageList = getattr(activity_tool,
self.__class__.__name__ + '_readMessageList',
class_name + '_readMessageList',
None)
if readMessageList is None:
return []
return [self.loadMessage(line.message,
activity=class_name,
uid=line.uid,
processing_node=line.processing_node,
priority=line.priority,
......
......@@ -62,7 +62,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<a href="manageInvoke?object_path=&dtml-path;&amp;method_id=&dtml-method_id;">Invoke</a>
</td>
</dtml-if>
<td align="left" valign="top"><dtml-var uid></td>
<td align="left" valign="top"><dtml-var uid>
<dtml-var expr="{'SQLDict':'(dict)','SQLQueue':'(queue)'}[activity]">
</td>
<td align="left" valign="top"><a href="&dtml-path;"><dtml-var path></a></td>
<td align="left" valign="top"><dtml-var method_id></td>
<td align="left" valign="top">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment