4
# (c) 2008 Sednacom <http://www.sednacom.fr>
7
# - Brice < brice@sednacom.fr >
10
# This program is free software; you can redistribute it and/or modify
11
# it under the terms of the GNU General Public License as published by
12
# the Free Software Foundation; either version 2 of the License, or
13
# (at your option) any later version.
15
# This program is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
# GNU General Public License for more details.
20
# You should have received a copy of the GNU General Public License
21
# along with this program; if not, write to the Free Software
22
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27
init_form_desc = """<?xml version="1.0" ?>
28
<form string="Zarafa">
29
<label string="Import contacts (Zarafa)" />
33
end_form_desc = """<?xml version="1.0" ?>
34
<form string="Zarafa">
35
<label string="Import OK !" />
39
class wizard_zarafa_contact_import( wizard.interface ):
41
def _do_import( wiz, cr, uid, data, context ):
42
pooloo = pooler.get_pool(cr.dbname)
43
obj = pooloo.get('zarafa.contact')
45
obj._import(cr, uid, context)
54
'arch': init_form_desc ,
56
'state': [ ( 'doit', 'Import' ), ],
60
'actions' : [_do_import, ],
70
'arch': end_form_desc ,
72
'state': [( 'end', 'Ok' ), ],
77
wizard_zarafa_contact_import( 'zarafa.contact.import' )