Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 71847 invoked from network); 29 Jun 2006 15:44:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jun 2006 15:44:55 -0000 Received: (qmail 84930 invoked by uid 500); 29 Jun 2006 15:44:54 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 84755 invoked by uid 500); 29 Jun 2006 15:44:53 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 84744 invoked by uid 99); 29 Jun 2006 15:44:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 08:44:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.23.3.140] (HELO pythagoras.zen.co.uk) (212.23.3.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 08:44:52 -0700 Received: from [217.155.85.142] (helo=[217.155.85.137]) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1Fvygw-0002XO-Kn for dev@forrest.apache.org; Thu, 29 Jun 2006 15:44:30 +0000 Message-ID: <44A3F550.2080707@apache.org> Date: Thu, 29 Jun 2006 16:44:16 +0100 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@forrest.apache.org Subject: Re: OSCommerce input plugin References: <449A0756.3050107@gmail.com> <449A6528.8000405@apache.org> <449A8CC0.20000@gmail.com> <449B9D17.6070702@gmail.com> <449BC565.3090202@apache.org> <449C7E5E.4060804@gmail.com> <449EE1EF.5000108@apache.org> <44A08CCC.6080809@gmail.com> <44A0F447.9070400@apache.org> <44A0FAAB.508@apache.org> <44A33A4E.10708@gmail.com> <44A3B5D7.9020509@apache.org> <44A3EED8.6000307@gmail.com> In-Reply-To: <44A3EED8.6000307@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Pythagoras-IP: [217.155.85.142] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Brian M Dube wrote: > Ross Gardler wrote: > >> Brian M Dube wrote: >> >>> Due to the approaching deadline for this project, I'm going to >>> proceed with the code in place. >> >> >> When is your deadline and exactly what do you need Forrest to output >> by that date? Unless you are a long way down the road with your >> scraping code I would suggest that using the plugin woud be faster for >> you as it only involves writing stylesheets to provide the required >> output format. Well, that's not wuite true, there is some Java code >> that needs writing too, but the framework is in place so the code >> needed is pretty much "standard fare", such as creating the XML >> representatin of each bean as a string. > > > We leave for an extended business trip 18 July. The powers that be would > like to see the catalog done before we leave. > > I'm sorry I failed to mention that I'm now using > whiteboard/org.apache.forrest.plugin.Database to generate the data. > Thank you for pointing out that it is possible, and better, to access > the back end directly. Cool, but my new approach for talking to the database (i.e. hibernate) is better from a maintenance point of view as it doesn't tie us to a specific back end. Furthermore it provides POJO's for manipulating the data. It works in a limited fashion and is already more complete with respect to getting data out of an OSCommerce back end than the raw database plugin. >> I can't put the code in our SVN as it uses Hibernate which is LGPL. I >> can make it available in a private repository, and move it into a >> plugins project on sourceforge when it is set up. > > > I get an error running the Hibernate example, java.sql.SQLException: > Duplicate entry. That sounds like an issue with the test data, so I > think the installation is fine. I haven't yet grasped how to add it into > the mix. Not sure what you mean by the "hibernate example", but my current plugin work already has that sorted out so you can pretty much leave this part to me. You can focus on the POJO's to represent the model and the XSLT's to render the model as you need it. I can focus on the glue between the database the POJO's and Forrest. Would you like me to send it to you offlist so you can have a look at the proof of concept? Since you still seem to be at a very early stage I'd love for us to work together on this code, I can put it in an SVN repository and make it available under LGPL (hibernate restriction). I'd prefer to make it ASL2, but would need more time to cleanly separate the dependencies so that will have to come later. I don't think July 18th will be a problem unless you are a long way down the road to implementation using the database plugin. In which case we should go our separate ways until you have more breathing space then we can bring the two solutions together into a finished product. Ross