[Erp5-report] r29309 - in /erp5/trunk/products/ERP5: ./ interfaces/ tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 30 09:57:15 CEST 2009
Author: luke
Date: Wed Sep 30 09:57:13 2009
New Revision: 29309
URL: http://svn.erp5.org?rev=29309&view=rev
Log:
- follow rule for interfaces - one interface per file
Added:
erp5/trunk/products/ERP5/interfaces/aggregated_amount_list.py
erp5/trunk/products/ERP5/interfaces/delivery_solver.py
erp5/trunk/products/ERP5/interfaces/target_solver.py
Modified:
erp5/trunk/products/ERP5/AggregatedAmountList.py
erp5/trunk/products/ERP5/interfaces/divergence_solver.py
erp5/trunk/products/ERP5/interfaces/transformation.py
erp5/trunk/products/ERP5/tests/testERP5Interfaces.py
Modified: erp5/trunk/products/ERP5/AggregatedAmountList.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/AggregatedAmountList.py?rev=29309&r1=29308&r2=29309&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/AggregatedAmountList.py [utf8] (original)
+++ erp5/trunk/products/ERP5/AggregatedAmountList.py [utf8] Wed Sep 30 09:57:13 2009
@@ -34,7 +34,8 @@
from Products.PythonScripts.Utility import allow_class
from AccessControl import ClassSecurityInfo
-from Products.ERP5.interfaces.transformation import IAggregatedAmountList
+from Products.ERP5.interfaces.aggregated_amount_list \
+ import IAggregatedAmountList
class AggregatedAmountList(UserList):
"""
Added: erp5/trunk/products/ERP5/interfaces/aggregated_amount_list.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/aggregated_amount_list.py?rev=29309&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/aggregated_amount_list.py (added)
+++ erp5/trunk/products/ERP5/interfaces/aggregated_amount_list.py [utf8] Wed Sep 30 09:57:13 2009
@@ -1,0 +1,45 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2009 Nexedi SA and Contributors. All Rights Reserved.
+# Jean-Paul Smets-Solanes <jp at nexedi.com>
+# Łukasz Nowak <luke at nexedi.com>
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsibility 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
+# guarantees and support are strongly advised 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.
+#
+##############################################################################
+
+from zope.interface import Interface
+
+try:
+ from zope.interface.common.sequence import ISequence
+except ImportError:
+ # ISequence does not exists in old zope.interface versions
+ class ISequence(Interface):
+ pass
+
+class IAggregatedAmountList(ISequence):
+ """An Aggregated Amount List is a list of amounts aggregated together.
+
+ It is a sequence of objects implementing IAmount interface.
+ """
+
Added: erp5/trunk/products/ERP5/interfaces/delivery_solver.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/delivery_solver.py?rev=29309&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/delivery_solver.py (added)
+++ erp5/trunk/products/ERP5/interfaces/delivery_solver.py [utf8] Wed Sep 30 09:57:13 2009
@@ -1,0 +1,36 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2009 Nexedi SARL and Contributors. All Rights Reserved.
+# Łukasz Nowak <luke at nexedi.com>
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsibility 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
+# guarantees and support are strongly advised 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.
+#
+##############################################################################
+
+from zope.interface import Interface
+
+class IDeliverySolver(Interface):
+ """Solves quantity values between delivery line and related simulation movements"""
+ # placeholder to define
+ pass
+
Modified: erp5/trunk/products/ERP5/interfaces/divergence_solver.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/divergence_solver.py?rev=29309&r1=29308&r2=29309&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/divergence_solver.py [utf8] (original)
+++ erp5/trunk/products/ERP5/interfaces/divergence_solver.py [utf8] Wed Sep 30 09:57:13 2009
@@ -5,10 +5,10 @@
# Łukasz Nowak <luke at nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
+# programmers who take the whole responsibility 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
+# guarantees and support are strongly advised to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
@@ -37,13 +37,3 @@
decision_list is list of instances of DivergenceSolutionDecision class
"""
-
-class IDeliverySolver(Interface):
- """Solves quantity values between delivery line and related simulation movements"""
- # placeholder to define
- pass
-
-class ITargetSolver(Interface):
- """Solves changes of properties up to simulation tree with taking proper decisions"""
- # placeholder to define
- pass
Added: erp5/trunk/products/ERP5/interfaces/target_solver.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/target_solver.py?rev=29309&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/target_solver.py (added)
+++ erp5/trunk/products/ERP5/interfaces/target_solver.py [utf8] Wed Sep 30 09:57:13 2009
@@ -1,0 +1,35 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2009 Nexedi SARL and Contributors. All Rights Reserved.
+# Łukasz Nowak <luke at nexedi.com>
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsibility 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
+# guarantees and support are strongly advised 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.
+#
+##############################################################################
+
+from zope.interface import Interface
+
+class ITargetSolver(Interface):
+ """Solves changes of properties up to simulation tree with taking proper decisions"""
+ # placeholder to define
+ pass
Modified: erp5/trunk/products/ERP5/interfaces/transformation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/transformation.py?rev=29309&r1=29308&r2=29309&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/transformation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/interfaces/transformation.py [utf8] Wed Sep 30 09:57:13 2009
@@ -29,14 +29,6 @@
##############################################################################
from zope.interface import Interface
-
-try:
- from zope.interface.common.sequence import ISequence
-except ImportError:
- # ISequence does not exists in old zope.interface versions
- class ISequence(Interface):
- pass
-
class ITransformation(Interface):
"""
@@ -82,11 +74,3 @@
* movement_to_delete_list - a list of movements from movement_list or from the
context that shall be deleted.
"""
-
-
-class IAggregatedAmountList(ISequence):
- """An Aggregated Amount List is a list of amounts aggregated together.
-
- It is a sequence of objects implementing IAmount interface.
- """
-
Modified: erp5/trunk/products/ERP5/tests/testERP5Interfaces.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Interfaces.py?rev=29309&r1=29308&r2=29309&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Interfaces.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Interfaces.py [utf8] Wed Sep 30 09:57:13 2009
@@ -64,7 +64,8 @@
def test_AggregatedAmountList_implements_IAggregatedAmountList(self):
# AggregatedAmountList is not a document
- from Products.ERP5.interfaces.transformation import IAggregatedAmountList
+ from Products.ERP5.interfaces.aggregated_amount_list \
+ import IAggregatedAmountList
from Products.ERP5.AggregatedAmountList import AggregatedAmountList
verifyClass(IAggregatedAmountList, AggregatedAmountList)
More information about the Erp5-report
mailing list