[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSWImageButton and a updated example for GSWeb

From: Matt Rice
Subject: Re: GSWImageButton and a updated example for GSWeb
Date: Mon, 6 Apr 2009 17:53:39 -0700

On Mon, Apr 6, 2009 at 2:07 PM, David Ayers <address@hidden> wrote:
> Am Montag, den 06.04.2009, 22:43 +0200 schrieb Tim Kack:
>> The idea is to create a simple example that is using gsweb/gdl2 and then
>> slowly build out to a more advanced web application (as I learn more and
>> as problems are fixed in the frameworks).
> But that's /not/ the place to look for something simple and it doesn't
> use GDL2 (beyond some minor infrastructure)... I think the examples that
> Matt Rice was working on would be much better place to start.

yeah what I believe David is refering to is the stuff here

basically it is a framework with an EOModel file (initially based off
of the gdl2 testsuite model but it has some differences)

the model is setup with prototypes for SQLite and PostgreSQL,
and the framework has some methods for switching the connection
dictionary to the chosen adaptor.
it also has methods to execute the database creation SQL, and populate
the database with some sample data.
some of this is generic an can be used with other models besides the
'trading' model provided..

Trading.m is mostly generic, it has some convenience stuff which
allows you to use a 'default model' which is the trading model
TradingData.m is specific to the default model and is what populates
the database with the sample data.

It's not really an example by definition, but the intent is to collect
all the necessary overhead which examples would need in one place so
that the examples themselves can focus on whatever it is they explain.

from there the idea was we could create examples which use the
Trading.framework using EOInterface and GSWeb

there is a tool createTradingDB (create.m) which shows usage with the
default model/default adaptor
this is by default the first adaptor found, but you can specifically
set the TEST_ADAPTOR environment variable, or the GDL2TestAdaptorName
user default (this stuff was lifted from the testsuite, and i hadn't
changed the name, it'd probably be a good idea to pick a single name
and rename it to something without 'TEST' in it.)

in ../ of the Trading framework there are some more examples which
were used in the GDL2Intro documentation, these were written before
and don't actually use the Trading framework,
nothing does yet so if there is anything you need/would like to change
about it to make it a better basis for a GSWeb example, feel free to
bring it to my attention.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]