[Erp5-report] r30758 - /erp5/trunk/products/ERP5/mixin/solver.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 19 10:22:58 CET 2009
Author: kazuhiko
Date: Thu Nov 19 10:22:57 2009
New Revision: 30758
URL: http://svn.erp5.org?rev=30758&view=rev
Log:
update a bit, but still in draft.
Modified:
erp5/trunk/products/ERP5/mixin/solver.py
Modified: erp5/trunk/products/ERP5/mixin/solver.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/mixin/solver.py?rev=30758&r1=30757&r2=30758&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/solver.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/solver.py [utf8] Thu Nov 19 10:22:57 2009
@@ -5,10 +5,10 @@
# Jean-Paul Smets-Solanes <jp 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 adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
@@ -23,12 +23,23 @@
#
# 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.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
+import zope.interface
+from AccessControl import ClassSecurityInfo
+from Products.ERP5Type import Permissions, interfaces
class SolverMixin:
"""
+ Provides generic methods and helper methods to implement ISolver.
"""
- # Placeholder - will implement isSolving etc.
+ # Declarative security
+ security = ClassSecurityInfo()
+ security.declareObjectProtected(Permissions.AccessContentsInformation)
+
+ # Declarative interfaces
+ zope.interface.implements(interfaces.ISolver,)
+
+ # Implementation of ISolver
More information about the Erp5-report
mailing list