The way to understand Webware is through the source. You are looking for setting and gettting session data
Take a look at the summary for WebKit.page http://webware.sourceforge.net/Webware-0.7/WebKit/Docs/Source/Summaries/Page.py.html You will see a method called session. this will return the session ovject associated with the browser being used to access the page. 1) mySession = self.sessions() Then you take a look at the docs for session http://webware.sourceforge.net/Webware-0.7/WebKit/Docs/Source/Summaries/Session.py.html and you will see hasValue, setValue, and value methods So to set a session value use mySession.setValue('pageCount',count) to read it use: mySession.hasValue('pageCount'): savedCount = mySession.value('pageCount') else: savedCount = 0 Good Luck, -Aaron Held Ben Logan wrote: > Hello, > > I successfully installed Webware on my Redhat 7.1 box a few days ago, > but am having some trouble with a few concepts. Before I get into > that, perhaps I should tell you what I would eventually like to > accomplish using Webware. > > I created and maintain a website at http://cyclist.wblogan.net. You > might want to take a look to get a feel for what I would like to do. > My username is 'benl', and you can login with the pulldown menu on the > left. The site is written in PHP with a MySQL backend. This was my > first such project, and it shows! :) The code is nasty and > unmaintainable, and the interface is crummy. I do have an improved > version in the works on my own system, but I've pretty much ceased > work on it. The new version is about 10,000 combined lines of > PHP+HTML, and has a much more modular and layered design. However, I > would *much* rather code this project in Python. It looks like > WebWare could simplify the process for me. Is this a good candidate > for an application server? If I'm understanding the concept behind an > app server, the state of my application could remain intact between > pages without me having to try to maintain it between pages. That's > what I've been using sessions in PHP for, but it always seems to get > complicated--especially when it comes to accepting/validating form > data. Or maybe I'm just dense... > > 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. > > I hope I've made my question clear. Thanks for any help, > > Ben > ------------------------------------------------------- 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
