Commit 1ee08278 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Prepare ERP5ShortMessage Product for migration from FS.

* Add erp5_core_proxy_field_legacy to dependencies (because of (at least) my_password).
* Rename ERP5ShortMessage.Errors module because the name is too generic for a 'Module Component'.
* Fix type_class of SMSTool: This should be the name of the class only, excluding the module.
* Add missing __init__.py to tests directory so that it can be migrated.
parent 1ca655a3
......@@ -63,7 +63,7 @@
</item>
<item>
<key> <string>type_class</string> </key>
<value> <string>Products.ERP5ShortMessage.Tool.SMSTool.SMSTool</string> </value>
<value> <string>SMSTool</string> </value>
</item>
<item>
<key> <string>type_mixin</string> </key>
......
erp5_core_proxy_field_legacy
erp5_crm
\ No newline at end of file
......@@ -47,7 +47,7 @@ from Products.ERP5Type.XMLObject import XMLObject
from Products import ERP5Security
#Product Module
from Products.ERP5ShortMessage.Errors import SMSGatewayError
from Products.ERP5ShortMessage.SMSGatewayError import SMSGatewayError
......
......@@ -45,7 +45,7 @@ from Products.ERP5Type.XMLObject import XMLObject
from Products import ERP5Security
#Product Module
from Products.ERP5ShortMessage.Errors import SMSGatewayError
from Products.ERP5ShortMessage.SMSGatewayError import SMSGatewayError
class MobytGateway(XMLObject):
......
......@@ -25,14 +25,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
"""Exception Classes for ERP5Configurator"""
# These classes are placed here so that they can be imported into TTW Python
# scripts. To do so, add the following line to your Py script:
# from Products.ERP5.Errors import DeferredCatalogError
from Products.PythonScripts.Utility import allow_class
class SMSGatewayError(Exception):pass
allow_class(SMSGatewayError)
# This file is kept for backward compatibility only
from Products.ERP5ShortMessage.SMSGatewayError import SMSGatewayError
##############################################################################
#
# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
# Francois-Xavier Algrain <fxalgrain@tiolive.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
class SMSGatewayError(Exception):
pass
from Products.PythonScripts.Utility import allow_class
allow_class(SMSGatewayError)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment