Return-Path: Delivered-To: apmail-gump-general-archive@www.apache.org Received: (qmail 30430 invoked from network); 25 Mar 2004 20:59:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 25 Mar 2004 20:59:43 -0000 Received: (qmail 69213 invoked by uid 500); 25 Mar 2004 20:59:30 -0000 Delivered-To: apmail-gump-general-archive@gump.apache.org Received: (qmail 69187 invoked by uid 500); 25 Mar 2004 20:59:30 -0000 Mailing-List: contact general-help@gump.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Gump code and data" Reply-To: "Gump code and data" Delivered-To: mailing list general@gump.apache.org Received: (qmail 69168 invoked from network); 25 Mar 2004 20:59:29 -0000 Received: from unknown (HELO mx1.try.sybase.com) (130.214.10.19) by daedalus.apache.org with SMTP; 25 Mar 2004 20:59:29 -0000 Received: from mail.try.sybase.com (mail.try.sybase.com [130.214.10.18]) by mx1.try.sybase.com (8.11.6/8.11.0) with ESMTP id i2PJvl210359 for ; Thu, 25 Mar 2004 12:57:47 -0700 Received: from ajackpc ([10.22.34.163]) by mail.try.sybase.com (8.11.6/8.11.6) with SMTP id i2PKetk20115 for ; Thu, 25 Mar 2004 13:40:55 -0700 Message-ID: <01c201c412ac$13ea8cf0$a322160a@sybase.com> From: "Adam Jack" To: References: <4062BFA5.1030202@antbuild.com> <01d901c4127b$aa113bb0$9901a8c0@sybase.com> <023101c4127d$74533a80$9901a8c0@sybase.com> <016101c412a5$1a1bcd70$a322160a@sybase.com> Subject: Generating HTML (was Gump Threashing/Spinning) Date: Thu, 25 Mar 2004 13:59:29 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4925.2800 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > We should probably use a template engine. I'm sure there's a python > equivalent for something like velocity (or smarty). First, I like the dynamic 'tree of nodes' based approach to writing HTML/XML, rather than template -- in the main because of pleasant experiences with the Perl modules for this in the past. That said, even though there are some huge fields here (build output logs) maybe a template mechanism is enough for the simple structure (results tables, lists, etc.) that we have. We have huge pages, with options missing (or not) based off content. I'm not sure any template could cope with that, but I am open minded to it. Second, I didn't realize that Python DOM had nice serialization mechanism. Maybe I should've used that from the start. Now Gump generates it's xdocs using an object tree structure. Watching the python memory grow from 20M (after loading all XML) to 136M (during generating these pages) it has some sort of leak (actual or effective): Fixing this area is clearly important, and I'd appreciate all insights... regards, Adam --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@gump.apache.org For additional commands, e-mail: general-help@gump.apache.org