Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 47001 invoked from network); 11 Mar 2005 15:18:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Mar 2005 15:18:22 -0000 Received: (qmail 4873 invoked by uid 500); 11 Mar 2005 15:18:20 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 4815 invoked by uid 500); 11 Mar 2005 15:18:20 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 4802 invoked by uid 99); 11 Mar 2005 15:18:20 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from blossom.betaversion.org (HELO blossom.betaversion.org) (62.140.213.100) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 11 Mar 2005 07:18:18 -0800 Received: by blossom.betaversion.org (Postfix, from userid 101) id 21ED4FFCC6; Fri, 11 Mar 2005 15:18:08 +0000 (GMT) X-AntiVirus-Version: ClamAV 0.83/761 X-AntiSpam-Version: SpamAssassin 3.0.2 X-AntiSpam-Status: No (score=1.7/limit=7.5) X-AntiSpam-Rules: rcvd_in_njabl_dul, listed Received: from [192.168.1.102] (h-68-166-234-166.cmbrmaor.dynamic.covad.net [68.166.234.166]) by blossom.betaversion.org (Postfix) with ESMTP id 8126EFFCB6 for ; Fri, 11 Mar 2005 15:18:07 +0000 (GMT) Message-ID: <4231B6BB.70502@apache.org> Date: Fri, 11 Mar 2005 10:18:19 -0500 From: Stefano Mazzocchi Organization: Apache Software Foundation User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Adding cocoon.suicide() to the FOM API. References: <4231A8CF.6040001@apache.org> In-Reply-To: <4231A8CF.6040001@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: > Hi all, > > There are some flowscript use cases where we want to stop the current > flowscript without creating a continuation, as we don't want to the user > to go back to the script. > > An example is a "login" function where the caller function expects this > function to exit only if login is successful, but that has to handle > e.g. a registration process that includes a "cancel" button. > > This is currently possible using "FOM_Cocoon.suicide()" which is what is > used internally by cocoon.sendPageAndWait (see fom_system.js), and I > would like to make this more visible by being available as > "cocoon.suicide()". > > Any objection? hmmm, cocoon.suicide() smells of 'shutdown the whole thing' which is kind of allarming :-) I don't mind the functionality being added, but I would like a less worrying name for it. -- Stefano.