Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 30984 invoked from network); 22 Jul 2004 07:30:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Jul 2004 07:30:45 -0000 Received: (qmail 61137 invoked by uid 500); 22 Jul 2004 07:30:34 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 61103 invoked by uid 500); 22 Jul 2004 07:30:34 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 61090 invoked by uid 99); 22 Jul 2004 07:30:34 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [213.252.141.121] (HELO mail.juwimm.de) (213.252.141.121) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 22 Jul 2004 00:30:33 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.juwimm.de (Juwimm Mail-Exchanger) with ESMTP id 253B5168515 for ; Thu, 22 Jul 2004 09:30:31 +0200 (CEST) Received: from [10.0.0.111] (unknown [10.0.0.111]) by mail.juwimm.de (Juwimm Mail-Exchanger) with ESMTP id 9DC031684D6 for ; Thu, 22 Jul 2004 09:30:26 +0200 (CEST) Message-ID: <40FF6D10.2060704@juwimm.com> Date: Thu, 22 Jul 2004 09:30:24 +0200 From: Patrick Verboom User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: using jython/python for cocoon cform flow Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Juwi|MacMillan X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I am not a big fan of JavaScript but I am of python. So I would like to use jython/python instead of JavaScript. Is there any documentation of how to do this? Some examples maybe? Or can someone give me some answers on the hand of a small example here. The following example is in JavaScript ****************************************************************** cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/v2/Form.js"); function showShoppingCart() { var form = new Form("shoppingcart.xml"); var wid = form.getWidget(); //accessing the repeater to set the values wid.cart[0].Stk.value = "1"; wid.cart[0].Title.value = "a title"; wid.cart[1].Stk.value = "2"; wid.cart[1].Title.value = "a second title"; wid.buttonName = "Order"; form.setBookmark(); // showForm() repeatedly sends the form to the browser and doesn't return until validation is complete. form.showForm("shoppingcart-display-pipeline"); } ********************************************************************** How would you rewrite this to jython/python? What module do I need to load? How can i create a Form and set the values in the repeater? how do i show the form? etc. questions over question :-) Does someone have any experience in using jython as a flow script? Thanks in advance for the help Greetings Patrick Verboom --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org