--- a/web/views/__init__.py Fri Jul 24 15:13:44 2009 +0200
+++ b/web/views/__init__.py Fri Jul 24 15:20:14 2009 +0200
@@ -111,7 +111,7 @@
def cell_call(self, row=0, col=0):
self.row, self.col = row, col # in case one need it
- tmpfile = tempfile.mkstemp('.png')
+ _, tmpfile = tempfile.mkstemp('.png')
try:
self._generate(tmpfile)
self.w(open(tmpfile).read())
--- a/web/views/workflow.py Fri Jul 24 15:13:44 2009 +0200
+++ b/web/views/workflow.py Fri Jul 24 15:20:14 2009 +0200
@@ -67,6 +67,7 @@
def redirectpath(self, entity):
return entity.rest_path()
+
class WFHistoryView(EntityView):
id = 'wfhistory'
__select__ = relation_possible('wf_info_for', role='object')
@@ -98,6 +99,7 @@
self.wview('table', rset, title=_(self.title), displayactions=False,
displaycols=displaycols, headers=headers)
+
class WFHistoryVComponent(component.EntityVComponent):
"""display the workflow history for entities supporting it"""
id = 'wfhistory'