Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 89199 invoked by uid 500); 24 Apr 2003 19:38:49 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 89176 invoked from network); 24 Apr 2003 19:38:48 -0000 Received: from neuagency.com (209.162.234.25) by daedalus.apache.org with SMTP; 24 Apr 2003 19:38:48 -0000 Received: from localhost (tcollen@localhost) by neuagency.com (8.11.6/8.11.6) with ESMTP id h3OJZnI03420 for ; Thu, 24 Apr 2003 15:35:50 -0400 (EDT) (envelope-from tcollen@neuagency.com) Date: Thu, 24 Apr 2003 15:35:49 -0400 (EDT) From: Tony Collen To: Subject: RE: Python Generator example In-Reply-To: <20030424192754.85423.qmail@web14808.mail.yahoo.com> Message-ID: <20030424152905.B90113-100000@neuagency.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 24 Apr 2003, e nio wrote: > Can you look at cocoon.xconf again, there are some definitions there > regarding python like it, under built-in logicsheets and under > languages. But you seemed right though, I could not figure out how > cocoon handles the mapping of *.py. the hello.py contents are BSF and I > have not learned those yet. Keep posting, I hope I'll learn from you. Looking at the src/blocks/bsf/java/org/apache/cocoon/generation/ScriptGenerator.java: It seems to be getting a list of "programming languages" (around line 113), which are set in WEB-INF/cocoon.xconf. Likewise, the "python" language class seems to reside in src/blocks/python/java/org/apache/cocoon/components/language/programming/python/PythonLanguage.java, The very bottom at: public String getSourceExtension(), which is overriden from the ProgrammingLanguage interface, seems to be where the actual extension is set. HTH, Tony -- Tony Collen ICQ: 12410567 -- Cocoon: Internet Glue (A Cocoon Weblog) http://manero.org/weblog/ -- --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-users-help@xml.apache.org