I'm in the process of learning^h^h^h experimenting with webware and 
have set up several small sites.

I now need to set up a page that references a flat file DB and has cgi 
like capabilities to add, modify and delete items to the file. Because 
the number of items on the list is small (>500), it doesn't seem 
worthwhile to interface with a full blown SQL DB.

My initial thoughts were to create an "webware application wide" 
singleton, that would serialize all accesses to the data and function 
as the "M" of the MVC paradigm.  The singleton would retain all the 
items in memory, and update the file on the disk when the data changed. 
It's not clear to me, however, if this is the 'right' approach, and if 
it is, how to implement it in webware.

Does anyone have any advice or thoughts, and/or can point me to some 
towards some example code?

- Dan



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to