From fb430f07e95c3cae1ff4bba0feea252e0a773f54 Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Mon, 28 Feb 2011 18:08:47 +0530 Subject: [REM] sync_google_contact: Removed sync_base module and its dependancy from sync_google_contact. bzr revid: uco@tinyerp.com-20110228123847-nu1tt215zxvhfea9 --- addons/sync_base/wizard/synchronize_base.py | 61 ----------------------------- 1 file changed, 61 deletions(-) delete mode 100644 addons/sync_base/wizard/synchronize_base.py (limited to 'addons/sync_base/wizard/synchronize_base.py') diff --git a/addons/sync_base/wizard/synchronize_base.py b/addons/sync_base/wizard/synchronize_base.py deleted file mode 100644 index 9077b32398b..00000000000 --- a/addons/sync_base/wizard/synchronize_base.py +++ /dev/null @@ -1,61 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# 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 . -# -############################################################################## - -from osv import fields,osv -from tools.translate import _ - - -class synchronize_base(osv.osv_memory): - _description ='Synchronize base import contact ' - _name = "synchronize.base.contact.wizard.import" - - def _get_tools_name(self, cr, user, context): - """ - @return the list of value of the selection field - should be overwritten by subclasses - """ - return [] - - _columns = { - 'tools': fields.selection(_get_tools_name, 'App to synchronize with'), - } - - - def action_synchronize(self, cr, uid, ids, context=None): - wizard_data = self.browse(cr, uid, ids, context=context) - return self._get_action(cr, uid, wizard_data[0].tools, context=context) - - - def _get_action(self, cr, uid, tools, context=None): - if not tools: - raise osv.except_osv(_("Error !"),_("Select App to synchronize with.")) - return self._get_actions_dic(cr, uid, context=context)[tools] - - def _get_actions_dic(self, cr, uid, context=None): - """ - this method should be overwritten in specialize module - @return the dictonnaries of action - """ - return {'none' : {'type': 'ir.actions.act_window_close' }} - -synchronize_base() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -- cgit v1.2.3