1 # -*- coding: utf-8 -*-
2 ##############################################################################
4 # OpenERP, Open Source Management Solution
5 # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Affero General Public License as
9 # published by the Free Software Foundation, either version 3 of the
10 # License, or (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU Affero General Public License for more details.
17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ##############################################################################
22 # Why doing some multi-thread instead of using OSE capabilities ?
26 # Add a transparant multi-thread layer to all report rendering layers
32 # TODO: method to stock on the disk
33 # Les class de reporting doivent surclasser cette classe
34 # Les seules methodes qui peuvent etre redefinies sont:
39 def __init__(self, bin_datas={}, path='.'):
41 self.bin_datas = bin_datas
49 result = self._render()
64 if __name__=='__main__':
66 print 'Multi-thread code !'
69 while not r.is_done():
75 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: