From: Chuck E. <ec...@mi...> - 2001-03-02 14:40:26
|
At 09:36 AM 3/2/2001 +0200, Andreas Pauley wrote: >Does webware have a way to provide state persistence (as in php for >example), I'm not sure why PHP is your example. Don't they just offer SQL access? Or are you referring to sessions? In either case, Webware's app server, WebKit, offers sessions, and, for storage, I use Webware's MiddleKit which maps Python objects to SQL databases. Also, since you're still using Python, you can use any of the DB API modules to hit up a SQL database directly. >and can I easily seperate html, data and logic (so that a web designer >can do all the html without needing to ever see or touch my code)? To separate HTML and logic you could put your logic in Python servlets, set up important attributes and then have your HTML designers write PSP pages that simply use these values. The PSP tag for doing so would look something like <%= self.salary %> which isn't much more complicated than HTML. Another option would be to use Python dictionary strings where the values would look like %(salary)s. In that case, you'd setup a dictionary with values for your designers to use. -Chuck |