summaryrefslogtreecommitdiff
path: root/bin/addons/base/module
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2009-01-06 11:40:17 +0200
committerP. Christeas <p_christ@hol.gr>2009-01-06 11:40:17 +0200
commit1435d6d064defe203e41b918fa62f5fdb20069cd (patch)
tree268966970dbe3efd01dbbc5f5e1e6096f7dd3125 /bin/addons/base/module
parent12bcce44c451ea193c188c55b4cc3e979aeff004 (diff)
parent20ad606d8b13338dbe53447e8b049548bc878288 (diff)
Merge branch 'master' of /home/panos/tmp/tinyerp/openobject-server/ into mdv-gpl3
bzr revid: p_christ@hol.gr-20090106094017-i26aufnjth5am64m
Diffstat (limited to 'bin/addons/base/module')
-rw-r--r--bin/addons/base/module/__init__.py2
-rw-r--r--bin/addons/base/module/module.py2
-rw-r--r--bin/addons/base/module/report/__init__.py2
-rw-r--r--bin/addons/base/module/report/ir_module_reference.rml21
-rw-r--r--bin/addons/base/module/report/ir_module_reference_print.py2
-rw-r--r--bin/addons/base/module/wizard/__init__.py2
-rw-r--r--bin/addons/base/module/wizard/add_new.py12
-rw-r--r--bin/addons/base/module/wizard/wizard_export_lang.py2
-rw-r--r--bin/addons/base/module/wizard/wizard_import_lang.py2
-rw-r--r--bin/addons/base/module/wizard/wizard_module_import.py2
-rw-r--r--bin/addons/base/module/wizard/wizard_module_lang_install.py2
-rw-r--r--bin/addons/base/module/wizard/wizard_module_upgrade.py2
-rw-r--r--bin/addons/base/module/wizard/wizard_update_module.py2
-rw-r--r--bin/addons/base/module/wizard/wizard_update_translations.py2
14 files changed, 33 insertions, 24 deletions
diff --git a/bin/addons/base/module/__init__.py b/bin/addons/base/module/__init__.py
index 2e1a825c35e..c6b37580341 100644
--- a/bin/addons/base/module/__init__.py
+++ b/bin/addons/base/module/__init__.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py
index 01917e9ab7e..ce9e7683e16 100644
--- a/bin/addons/base/module/module.py
+++ b/bin/addons/base/module/module.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/report/__init__.py b/bin/addons/base/module/report/__init__.py
index e2e7dbdf7dd..e3f49519d49 100644
--- a/bin/addons/base/module/report/__init__.py
+++ b/bin/addons/base/module/report/__init__.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/report/ir_module_reference.rml b/bin/addons/base/module/report/ir_module_reference.rml
index b19d0ddeed9..9cb301e89a1 100644
--- a/bin/addons/base/module/report/ir_module_reference.rml
+++ b/bin/addons/base/module/report/ir_module_reference.rml
@@ -3,16 +3,17 @@
<template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
<pageTemplate id="first">
<frame id="first" x1="42.0" y1="42.0" width="511" height="758"/>
- <header>
- <pageGraphics>
- <setFont name="Helvetica-Bold" size="9"/>
- <drawString x="1.0cm" y="28.1cm">[[ company.name ]]</drawString>
- <drawRightString x="20cm" y="28.1cm"> Reference Guide </drawRightString>
- <lineMode width="0.7"/>
- <stroke color="black"/>
- <lines>1cm 28cm 20cm 28cm</lines>
- </pageGraphics>
- </header>
+ <header>
+ <pageGraphics>
+ <setFont name="Helvetica-Bold" size="9"/>
+ <drawString x="1.0cm" y="28.1cm">[[ company.name ]]</drawString>
+ <drawRightString x="20cm" y="28.1cm"> Reference Guide </drawRightString>
+ <lineMode width="0.7"/>
+ <stroke color="black"/>
+ <lines>1cm 28cm 20cm 28cm</lines>
+ </pageGraphics>
+ </header>
+
</pageTemplate>
</template>
<stylesheet>
diff --git a/bin/addons/base/module/report/ir_module_reference_print.py b/bin/addons/base/module/report/ir_module_reference_print.py
index 47235430eff..92029014bac 100644
--- a/bin/addons/base/module/report/ir_module_reference_print.py
+++ b/bin/addons/base/module/report/ir_module_reference_print.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/wizard/__init__.py b/bin/addons/base/module/wizard/__init__.py
index c46811e5eeb..63c49313c66 100644
--- a/bin/addons/base/module/wizard/__init__.py
+++ b/bin/addons/base/module/wizard/__init__.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/wizard/add_new.py b/bin/addons/base/module/wizard/add_new.py
index d117ceacff2..ac1471db32a 100644
--- a/bin/addons/base/module/wizard/add_new.py
+++ b/bin/addons/base/module/wizard/add_new.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
@@ -57,7 +57,15 @@ class wizard_install_module(wizard.interface):
terp = mod_obj.get_module_info(module)
if not terp.get('installable', True):
continue
- imp.load_module(module, *imp.find_module(module))
+
+ # XXX check if this code is correct...
+ fm = imp.find_module(module)
+ try:
+ imp.load_module(module, *fm)
+ finally:
+ if fm[0]:
+ fm[0].close()
+
mod_id = mod_obj.create(cr, uid, {
'name': module,
'state': 'uninstalled',
diff --git a/bin/addons/base/module/wizard/wizard_export_lang.py b/bin/addons/base/module/wizard/wizard_export_lang.py
index 7e1454bf25e..ef0055ac0ea 100644
--- a/bin/addons/base/module/wizard/wizard_export_lang.py
+++ b/bin/addons/base/module/wizard/wizard_export_lang.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/wizard/wizard_import_lang.py b/bin/addons/base/module/wizard/wizard_import_lang.py
index 3a195b19747..aad846d59ac 100644
--- a/bin/addons/base/module/wizard/wizard_import_lang.py
+++ b/bin/addons/base/module/wizard/wizard_import_lang.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/wizard/wizard_module_import.py b/bin/addons/base/module/wizard/wizard_module_import.py
index 9471ea651b3..c166761b275 100644
--- a/bin/addons/base/module/wizard/wizard_module_import.py
+++ b/bin/addons/base/module/wizard/wizard_module_import.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/wizard/wizard_module_lang_install.py b/bin/addons/base/module/wizard/wizard_module_lang_install.py
index d904fdb2a42..badf7dce09b 100644
--- a/bin/addons/base/module/wizard/wizard_module_lang_install.py
+++ b/bin/addons/base/module/wizard/wizard_module_lang_install.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/wizard/wizard_module_upgrade.py b/bin/addons/base/module/wizard/wizard_module_upgrade.py
index fb31bdec141..da04c12429c 100644
--- a/bin/addons/base/module/wizard/wizard_module_upgrade.py
+++ b/bin/addons/base/module/wizard/wizard_module_upgrade.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/wizard/wizard_update_module.py b/bin/addons/base/module/wizard/wizard_update_module.py
index 1193d833d4f..ebf7577e5a9 100644
--- a/bin/addons/base/module/wizard/wizard_update_module.py
+++ b/bin/addons/base/module/wizard/wizard_update_module.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
diff --git a/bin/addons/base/module/wizard/wizard_update_translations.py b/bin/addons/base/module/wizard/wizard_update_translations.py
index 83571e2e63d..e2a8512a8b3 100644
--- a/bin/addons/base/module/wizard/wizard_update_translations.py
+++ b/bin/addons/base/module/wizard/wizard_update_translations.py
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify