# HG changeset patch # User Sylvain Thénault # Date 1248441614 -7200 # Node ID c4c13cf8cd7b4f2b3b7de92d8ca0a989332a9c98 # Parent 00f3b102b2c575db985417897cb830c08827a9e0 mkstemp return a 2-uple diff -r 00f3b102b2c5 -r c4c13cf8cd7b web/views/__init__.py --- 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()) diff -r 00f3b102b2c5 -r c4c13cf8cd7b web/views/workflow.py --- 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'