Commit bba986b9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix typos and cosmetic changes only.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36385 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1d32448b
# -*- coding: utf-8 -*- # -*- 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@nexedi.com> # Jean-Paul Smets-Solanes <jp@nexedi.com>
# #
# WARNING: This program as such is intended to be used by professional # 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 # consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial # 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 # Service Company
# #
# This program is Free Software; you can redistribute it and/or # This program is Free Software; you can redistribute it and/or
...@@ -78,7 +78,7 @@ class InteractorMethod(Method): ...@@ -78,7 +78,7 @@ class InteractorMethod(Method):
def registerBeforeAction(self, action, args, kw): def registerBeforeAction(self, action, args, kw):
self.before_action_list.append((action, args, kw)) self.before_action_list.append((action, args, kw))
def registerAfterAction(self, action, args, kw): def registerAfterAction(self, action, args, kw):
self.after_action_list.append((action, args, kw)) self.after_action_list.append((action, args, kw))
...@@ -115,7 +115,7 @@ class InteractorSource: ...@@ -115,7 +115,7 @@ class InteractorSource:
class Interactor: class Interactor:
""" """
Interactor base class. Interactor base class.
TODO: TODO:
- implement uninstall in a generic way - implement uninstall in a generic way
...@@ -127,18 +127,18 @@ class Interactor: ...@@ -127,18 +127,18 @@ class Interactor:
Install the interactions. This method must be subclassed. Install the interactions. This method must be subclassed.
""" """
raise NotImplementedError raise NotImplementedError
def uninstall(self): def uninstall(self):
""" """
Uninstall the interactions. Default implementation is provided Uninstall the interactions. Default implementation is provided
by Interactor base class. by Interactor base class.
""" """
raise NotImplementedError raise NotImplementedError
# Interaction implementation # Interaction implementation
def on(self, method): def on(self, method):
""" """
Parameters may hold predicates ? Parameters may hold predicates ?
no need - use InteractorMethodCall and decide on action no need - use InteractorMethodCall and decide on action
""" """
return InteractorSource(method) return InteractorSource(method)
\ No newline at end of file
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