web/views/__init__.py
changeset 3451 6b46d73823f5
parent 3145 9b28545de60d
child 3720 5376aaadd16b
equal deleted inserted replaced
3448:495862266785 3451:6b46d73823f5
   108 
   108 
   109     def call(self):
   109     def call(self):
   110         self.cell_call()
   110         self.cell_call()
   111 
   111 
   112     def cell_call(self, row=0, col=0):
   112     def cell_call(self, row=0, col=0):
   113         self.row, self.col = row, col # in case one needs it
   113         self.cw_row, self.cw_col = row, col # in case one needs it
   114         fd, tmpfile = tempfile.mkstemp('.png')
   114         fd, tmpfile = tempfile.mkstemp('.png')
   115         os.close(fd)
   115         os.close(fd)
   116         self._generate(tmpfile)
   116         self._generate(tmpfile)
   117         self.w(open(tmpfile, 'rb').read())
   117         self.w(open(tmpfile, 'rb').read())
   118         os.unlink(tmpfile)
   118         os.unlink(tmpfile)