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 -*-
##############################################################################
#
# 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>
#
# 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)
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