[Erp5-report] r36385 kazuhiko - /erp5/trunk/products/ERP5Type/Interactor/Interactor.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jun 16 12:54:15 CEST 2010
Author: kazuhiko
Date: Wed Jun 16 12:54:01 2010
New Revision: 36385
URL: http://svn.erp5.org?rev=36385&view=rev
Log:
fix typos and cosmetic changes only.
Modified:
erp5/trunk/products/ERP5Type/Interactor/Interactor.py
Modified: erp5/trunk/products/ERP5Type/Interactor/Interactor.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Interactor/Interactor.py?rev=36385&r1=36384&r2=36385&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Interactor/Interactor.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Interactor/Interactor.py [utf8] Wed Jun 16 12:54:01 2010
@@ -1,14 +1,14 @@
# -*- coding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2007-2009 Nexedi SA and Contributors. All Rights Reserved.
+# Copyright (c) 2007-2010 Nexedi SA and Contributors. All Rights Reserved.
# 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
@@ -78,7 +78,7 @@ class InteractorMethod(Method):
def registerBeforeAction(self, action, args, kw):
self.before_action_list.append((action, args, kw))
-
+
def registerAfterAction(self, action, args, kw):
self.after_action_list.append((action, args, kw))
@@ -115,7 +115,7 @@ class InteractorSource:
class Interactor:
"""
- Interactor base class.
+ Interactor base class.
TODO:
- implement uninstall in a generic way
@@ -127,18 +127,18 @@ class Interactor:
Install the interactions. This method must be subclassed.
"""
raise NotImplementedError
-
+
def uninstall(self):
"""
Uninstall the interactions. Default implementation is provided
by Interactor base class.
"""
raise NotImplementedError
-
+
# Interaction implementation
def on(self, method):
"""
Parameters may hold predicates ?
no need - use InteractorMethodCall and decide on action
"""
- return InteractorSource(method)
\ No newline at end of file
+ return InteractorSource(method)
More information about the Erp5-report
mailing list