Peter Maas wrote:

I work at a little software company that has delivered some
iis/asp based apps to a corporate customer. The apps are
used by 50-1000 employees. The asp code is vbscript (quite
messy) and I'd like to port these apps to Python. I run a

I've been in this boat. We also had a big iis/asp based application and decided to rewrite it in Python/WebKit. Now we have a real mess:
1. a lot of old pure asp pages
2. a lot of old pure asp pages which uses some Python services, wrapped into COM servers
3. a lot of new python (WebKit) servlets, which are loaded as a separate frame in a browser (our web application is frame-based).


As the application became a composite of ASP/python universe we had to invent a way to pass some session data between the two (like the user id, nav. position, etc.).

There were also a lot of IIS-WebKit and ASP/python interaction bugs which caused us a lot of pain. For one, IIS supports so-called "internal redirects" which has an unfortunate effect for WebKit's sessions support: the _SID_ cookie it sets was dropped by IIS and never reach a browser. You could search archives of this mailing list for details.
From the past experience I think this combined solution was a PITA and should be used if the other approaches not available. In our case, the application is too big to switch from ASP to Python in a single release.


If you are shooting for pure-python solution it should be much simpler.

test installation of Webware which is my favourite system.
I fear 2 problems:

- authentication: the customer has integrated Win32 authentication
  and wouldn't like to enter the user accounts twice. Does a
  webware app fit in such an environment?

1. untested. you could try to reach NTLM from python via win32all COM support. Be sure you enabled "EnableCOM" option in a AppServer.config file if you ever want to use any COM interfaces (like adodbapi) -- this had caused me bad headaches in the past by subtle bugs.


2. use IIS authentication and (optionally) protect python pages to be served directly.

- iis/webware: I'm not sure how far I can go with wkcgi.exe
  An ISAPI filter would be nice that redirects URLs matching
  Python files or application directories to Webware. PHP has
  an ISAPI filter. Has somebody tried to take the PHP ISAPI code
  as a base for a WebKit ISAPI filter? Is that difficult? :)

We were using wkcgi.exe which served us fine.
But later, because of the corporate policy which banned .exe in a URL we had to configure .cgi to access WebKit (to enable which I had to cast a spell: cscript adsutil.vbs SET W3SVC/1/AllowPathInfoForScriptMappings 1)


There are 3 Python options, as far as I know:

- Webware
- Zope
- ASP with Python as language

What do you think? Thanks for your comments and help.

I've tried #3 but decided to abandon it because it was hard to debug.

Good luck with your efforts, you'll most probably need it. ;-)



-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to