summaryrefslogtreecommitdiff
path: root/bin/addons/base/module/wizard/wizard_update_module.py
diff options
context:
space:
mode:
authorHarry (Open ERP) <hmo@tinyerp.com>2010-03-03 15:25:53 +0530
committerHarry (Open ERP) <hmo@tinyerp.com>2010-03-03 15:25:53 +0530
commitff51cf9330585530bccaa61eae932be87641ec0f (patch)
tree9965def108387b3a8d391afa5d1d857cf074fc46 /bin/addons/base/module/wizard/wizard_update_module.py
parent6244d2f561fa150d4e4e1b59cfdfc896de3a0d05 (diff)
[IMP] base: Remove everything related to repositires in the modules management (like download module from repositories, configure repositories)
bzr revid: hmo@tinyerp.com-20100303095553-r0u2xo2r0a1nxm01
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_update_module.py')
-rw-r--r--bin/addons/base/module/wizard/wizard_update_module.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/bin/addons/base/module/wizard/wizard_update_module.py b/bin/addons/base/module/wizard/wizard_update_module.py
index d9548d5cdb9..c4f794a87de 100644
--- a/bin/addons/base/module/wizard/wizard_update_module.py
+++ b/bin/addons/base/module/wizard/wizard_update_module.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
@@ -15,7 +15,7 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -27,11 +27,11 @@ class wizard_update_module(wizard.interface):
arch = '''<?xml version="1.0"?>
<form string="Scan for new modules">
- <label string="This function will check for new modules in the 'addons' path and on module repositories:" colspan="4" align="0.0"/>
- <field name="repositories" colspan="4" nolabel="1"/>
+ <label string="This function will check for new modules in the 'addons' path" colspan="4" align="0.0"/>
+
</form>'''
fields = {
- 'repositories': {'type': 'text', 'string': 'Repositories', 'readonly': True},
+
}
arch_module = '''<?xml version="1.0"?>
@@ -60,16 +60,11 @@ class wizard_update_module(wizard.interface):
'type': 'ir.actions.act_window'
}
- def _get_repositories(self, cr, uid, data, context):
- pool = pooler.get_pool(cr.dbname)
- repository_obj = pool.get('ir.module.repository')
- ids = repository_obj.search(cr, uid, [])
- res = repository_obj.read(cr, uid, ids, ['name', 'url'], context)
- return {'repositories': '\n'.join(map(lambda x: x['name']+': '+x['url'], res))}
+
states = {
'init': {
- 'actions': [_get_repositories],
+ 'actions': [],
'result': {'type': 'form', 'arch': arch, 'fields': fields,
'state': [
('end', 'Cancel', 'gtk-cancel'),