diff --git a/stateful/definition.py b/stateful/definition.py index 7ebcf7e..f04128b 100644 --- a/stateful/definition.py +++ b/stateful/definition.py @@ -56,6 +56,7 @@ class Action(object): permission = None roles = [] doBefore = [] + schema = None def __init__(self, name, title=None, **kw): self.name = self.__name__ = name diff --git a/stateful/interfaces.py b/stateful/interfaces.py index 50cda62..ff3b752 100644 --- a/stateful/interfaces.py +++ b/stateful/interfaces.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2009 Helmut Merz helmutm@cy55.de +# Copyright (c) 2013 Helmut Merz helmutm@cy55.de # # 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 @@ -18,8 +18,6 @@ """ Interfaces for the `stateful` package. - -$Id$ """ try: @@ -52,6 +50,9 @@ class IAction(Interface): 'to execute this action; no check when empty.') permission = Attribute('The name of a permission that is needed for ' 'executing this action; no check when empty.') + schema = Attribute('An optional schema (a sequence of field specifications) ' + 'that provides information on fields to be shown in a ' + 'form used for executing the action.') class ITransition(IAction):