[Erp5-report] r29312 - /erp5/trunk/products/ERP5Type/interfaces/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 30 13:11:07 CEST 2009
Author: luke
Date: Wed Sep 30 13:11:04 2009
New Revision: 29312
URL: http://svn.erp5.org?rev=29312&view=rev
Log:
- define and import interfaces for messages in ERP5
- note about not solved redundancy in importing
Added:
erp5/trunk/products/ERP5Type/interfaces/consistency_message.py
erp5/trunk/products/ERP5Type/interfaces/divergence_message.py
erp5/trunk/products/ERP5Type/interfaces/object_message.py
Modified:
erp5/trunk/products/ERP5Type/interfaces/__init__.py
Modified: erp5/trunk/products/ERP5Type/interfaces/__init__.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/interfaces/__init__.py?rev=29312&r1=29311&r2=29312&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/interfaces/__init__.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/interfaces/__init__.py [utf8] Wed Sep 30 13:11:04 2009
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+# XXX/FIXME: tried to work without explicit definition of all interfaces (this
+# file empty) but failed to do so
+from consistency_message import IConsistencyMessage
+from divergence_message import IDivergenceMessage
+from object_message import IObjectMessage
from action_provider import IAction, IActionProvider
from cache_plugin import ICachePlugin
from category_access_provider import ICategoryAccessProvider
Added: erp5/trunk/products/ERP5Type/interfaces/consistency_message.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/interfaces/consistency_message.py?rev=29312&view=auto
==============================================================================
--- erp5/trunk/products/ERP5Type/interfaces/consistency_message.py (added)
+++ erp5/trunk/products/ERP5Type/interfaces/consistency_message.py [utf8] Wed Sep 30 13:11:04 2009
@@ -1,0 +1,34 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2009 Nexedi SA 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 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
+# 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 IConsistencyMessage(Interface):
+ def fix():
+ """Fix constraint"""
Added: erp5/trunk/products/ERP5Type/interfaces/divergence_message.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/interfaces/divergence_message.py?rev=29312&view=auto
==============================================================================
--- erp5/trunk/products/ERP5Type/interfaces/divergence_message.py (added)
+++ erp5/trunk/products/ERP5Type/interfaces/divergence_message.py [utf8] Wed Sep 30 13:11:04 2009
@@ -1,0 +1,37 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2009 Nexedi SA 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 IDivergenceMessage(Interface):
+ def getMovementGroup():
+ """Returns movement group of a builder which was responsible for generating tested_property"""
+
+ def getCollectOrderGroup():
+ """Wraps and canonises result of Movement Groups' getCollectOrderGroup getter"""
Added: erp5/trunk/products/ERP5Type/interfaces/object_message.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/interfaces/object_message.py?rev=29312&view=auto
==============================================================================
--- erp5/trunk/products/ERP5Type/interfaces/object_message.py (added)
+++ erp5/trunk/products/ERP5Type/interfaces/object_message.py [utf8] Wed Sep 30 13:11:04 2009
@@ -1,0 +1,51 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2009 Nexedi SA 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 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
+# 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 IObjectMessage(Interface):
+ def getTranslatedMessage():
+ """Returns message translated"""
+
+ def edit(**kw):
+ """Sets parameters of message"""
+ # XXX: kw is bad in interface definition
+
+ def getProperty(value, d=None):
+ """Object property getter
+
+ value
+ property name
+
+ d
+ default if no property found
+ """
+
+ def getObject():
+ """Returns object related to message"""
More information about the Erp5-report
mailing list