You can use PythonScript to rewrite your app as Python under IIS. one idea:
Move all business logic into stand alone Python modules, then convert the ..ASP pages to Cheetah templates
Stay on IIS until you can move wholesale to Python.
The main problem is that ASP system is really big (20 MB of .asp files only!) and it would stay for long. I'm rewriting only parts that either buggy or need to be extended with new features.
I've tried to use ActiveXPython but it turns out rather clumsy. Instead I now write python code then wrap it into COM Server and use Server.CreateObject() to use it from VB. Works really good and sufficiently fast.
And the second part, yes, I'm rewriting presentation from asp to cheetah. And for this I'm using Webware.
Shared sessions:
1) create a db table to store all session data.
2) Always create the session first in IIS. In your global ASA create a
"sub onSessionCreateOrSomeNameSimilar" that creates a row in the db table with the newly created sessionID
write another subroutine to trap the onSession expire event, and use that to either delete the row from the table or mark it dead.
In your awake method you check the database for a session, and if its there use that data.
If you want to use webware sessions also you can copy the database row into the Webware session.
If the session is not there or marked dead then call session().abandon.
Sounds like a good idea, thanks.
Actually Webware supports different session types so you could write a version of SQL session that supports your data.
Hmm. That's interesting. I'll look if it's not too complex.
The real problem is that webware wants to pickle the data, so you can create and delete session values on the fly. If you map to a database then all of the fields will have to be know.
Don't understand this. What do you mean by "fields will have to be know"? If I write custom session manager could it override Webware request for pickling/unpickling session's data?
I guess that you could also use some string encoding system (maybe convert value - pairs into a POST or GET string - supported on both servers)
Yes, I was thinking about this.
In all of your webware pages make sure that you serve something from IIS so you keep the session alive.
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
