On Thu, Sep 26, 2002 at 02:42:11PM -0500, Ian Bicking wrote:
[...]
> Yes, Webware would be appropriate for this sort of application. It's
> still similar to PHP in terms of session data, but hopefully it would
> still be simpler. I'd recommend you spend time putting all the hard
> work (with the databases and statistics generation) into a plain Python
> module (i.e., one that doesn't use Webware in any way). Then you can
> use Webware servlets to provide an interface to this module. This will
> help keep your code cleaner, and probably make the programming more
> pleasant.
I would really like to design the program that way, because I would
also like to have a compatible, non-web version (perhaps with wxPython
or even ncurses as an interface). Ideally, there would be a module
that could be hooked with any UI desired.
One question I have is regarding how to store my data in the database.
The records I'm dealing with could be nicely represented by a set of
interrelated Python objects. Is it better to simply pickle these
objects and store the results in the SQL database, or better to
rebuild the objects from the database rows each time the data is
retrieved?
> > I think I get most of the ideas from the examples provided with WebKit
> > (and looking through the sources), but I'm mainly confused about
> > transactions and the HTTP{Request,Response} classes. (OK, so there
> > are a bunch more that I don't get, but those seem most relevant.) I'm
> > just having some trouble getting started with WebKit--probably because
> > I'm completely new to appservers in general.
>
> Maybe you are thinking there is more to those objects than there really
> is. They are actually quite simple objects -- Transaction is just a
> holder for the HTTPRequest and HTTPResponse. The request and response
> just hold input (form fields) and output (headers, cookies, and the body
> of the page). If you want to get a feel for how WebKit as a whole
> works, you might look at
> http://webware.colorstudy.net/twiki/bin/view/Webware/TransactionAnatomy
Okay, I think I'm getting the picture now. I was trying to make
Transactions more complicated than they are.
Thanks to all who responded (Aaron, Ian, and Mike),
Ben
--
Ben Logan: ben at wblogan dot net
OpenPGP Key KeyID: A1ADD1F0
We don't need no education, we don't need no thought control.
-- Pink Floyd
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss