~therp-nl/aeroo/7.0-lp1259995-no_rollback_in_register_all

« back to all changes in this revision

Viewing changes to report_aeroo_ooo/__init__.py

  • Committer: root
  • Date: 2013-02-01 16:11:17 UTC
  • Revision ID: root@erp.kndati.lv-20130201161117-1n3261woqk45mw5c
1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##############################################################################
 
2
#
 
3
# Copyright (c) 2009-2012 Alistek Ltd (http://www.alistek.com) All Rights Reserved.
 
4
#                    General contacts <info@alistek.com>
 
5
#
 
6
# WARNING: This program as such is intended to be used by professional
 
7
# programmers who take the whole responsability of assessing all potential
 
8
# consequences resulting from its eventual inadequacies and bugs
 
9
# End users who are looking for a ready-to-use solution with commercial
 
10
# garantees and support are strongly adviced to contract a Free Software
 
11
# Service Company
 
12
#
 
13
# This program is Free Software; you can redistribute it and/or
 
14
# modify it under the terms of the GNU General Public License
 
15
# as published by the Free Software Foundation; either version 3
 
16
# of the License, or (at your option) any later version.
 
17
#
 
18
# This module is GPLv3 or newer and incompatible
 
19
# with OpenERP SA "AGPL + Private Use License"!
 
20
#
 
21
# This program is distributed in the hope that it will be useful,
 
22
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
23
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
24
# GNU General Public License for more details.
 
25
#
 
26
# You should have received a copy of the GNU General Public License
 
27
# along with this program; if not, write to the Free Software
 
28
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
29
#
 
30
##############################################################################
 
31
 
 
32
check_list = [
 
33
    'import uno',
 
34
    'import unohelper',
 
35
    'from com.sun.star.beans import PropertyValue',
 
36
    'from com.sun.star.uno import Exception as UnoException',
 
37
    'from com.sun.star.connection import NoConnectException, ConnectionSetupException',
 
38
    'from com.sun.star.beans import UnknownPropertyException',
 
39
    'from com.sun.star.lang import IllegalArgumentException',
 
40
    'from com.sun.star.io import XOutputStream',
 
41
    'from com.sun.star.io import IOException',
 
42
]
 
43
 
 
44
from check_deps import check_deps
 
45
check_deps(check_list)
 
46
 
 
47
import installer
 
48
import report
 
49
try:
 
50
    import DocumentConverter
 
51
except ImportError, e:
 
52
    print e
 
53