# HG changeset patch # User paulb # Date 1093628356 0 # Node ID b0386ec232e0e6dabd86adc8582e04201d378206 # Parent b712949431d186b4373213e79b4fc9e11a892c9e [project @ 2004-08-27 17:39:16 by paulb] Improved the management functions so that the confirmation screen no longer appears. Renamed some parameters. diff -r b712949431d1 -r b0386ec232e0 examples/Zope/SimpleProduct/__init__.py --- a/examples/Zope/SimpleProduct/__init__.py Fri Aug 27 17:38:21 2004 +0000 +++ b/examples/Zope/SimpleProduct/__init__.py Fri Aug 27 17:39:16 2004 +0000 @@ -32,23 +32,15 @@ """ -def addProduct(dispatcher, id): +def addProduct(self, id, REQUEST=None): """ The function used to add the product. """ product = SimpleProduct(id) - dispatcher.Destination()._setObject(id, product) - return """ - - - Simple Product Added - - - Simple product added to namespace! - - - """ + self.Destination()._setObject(id, product) + if REQUEST: + return self.manage_main(self, REQUEST) def initialize(context): context.registerClass(