mkstemp return a 2-uple
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 24 Jul 2009 15:20:14 +0200
changeset 2487 c4c13cf8cd7b
parent 2486 00f3b102b2c5
child 2488 cd007fc4f2ea
mkstemp return a 2-uple
web/views/__init__.py
web/views/workflow.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())
--- 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'