473,804 Members | 3,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

replacing ASP/VBScript with Python

I have inherited an extremely messy ASP/VBScript application which
is a pain for me to support. Now the customer is thinking about a
redesign. I'd like to rewrite the whole thing in Python but the app
has to meet some conditions like

- IIS frontend
- MSSQL db server
- Win32 authentication
- No 'ugly' URLs like http://server/cgi-bin/frontend.cgi?main.py
- Performance: intranet with ~ 1000 users

My personal preferences:

- I'd rather do this in plain Python than using e.g. Zope because I
fear the additional complexity of handling Zope and make it seam-
lessly work with IIS.
- I'd like to do session handling in Python because ASP's session
object is quite limited and some of the ASP app's mess is caused
by trying to use it for compound data type storage. OTOH I could
pickle Python objects to a string and store that in an ASP session.

Thanks for any help.

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
Jul 18 '05 #1
5 2022
Peter Maas schrieb:
I have inherited an extremely messy ASP/VBScript application which
is a pain for me to support. Now the customer is thinking about a
redesign. I'd like to rewrite the whole thing in Python but the app
has to meet some conditions like

[...]

Just noticed that this posting doesn't contain any questions. Here
they are:

Any comments? Has anybody done something comparable successfully and
give some advice?

Thanks in advance.

:)

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
Jul 18 '05 #2
> Just noticed that this posting doesn't contain any questions. Here
they are:

Any comments? Has anybody done something comparable successfully and
give some advice?

Thanks in advance.


You did not really give much information of what your application does -
e.g. for a CMS, I'd strongly recommend a zope based solution. Other apps
might be better written in other frameworks.
--
Regards,

Diez B. Roggisch
Jul 18 '05 #3
Diez B. Roggisch schrieb:
You did not really give much information of what your application does -
e.g. for a CMS, I'd strongly recommend a zope based solution. Other apps
might be better written in other frameworks.


It's a procurement app. Users (employees) can search in a product list
and generate orders to the company's internal or external suppliers.
The orders are stored in a database and emails are generated to the
addresses of the buyer and the suppliers. There is no direct interface
to an erp app (like SAP).

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
Jul 18 '05 #4
Peter Maas schrieb:
I have inherited an extremely messy ASP/VBScript application which
is a pain for me to support. Now the customer is thinking about a
redesign. I'd like to rewrite the whole thing in Python but the app
has to meet some conditions like

- IIS frontend
- MSSQL db server
- Win32 authentication
- No 'ugly' URLs like http://server/cgi-bin/frontend.cgi?main.py
- Performance: intranet with ~ 1000 users


In the meantime I have searched the internet and found plenty of options:

- plain cgi with fastcgi and mod_rewrite for IIS to transform the URL
- quixote cgi with fastcgi and mod_rewrite
- Webware + wkcgi
- Python ASP (registering Python with Pywin32 as ASP language)
- mxODBC + SQL ODBC driver
- pyADO + SQL MDAC driver

I'm now confident that it is doable and keen on finding out. The usual
question: what is the one and best way to do it? ;)

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
Jul 18 '05 #5
D H
Peter Maas wrote:
Peter Maas schrieb:
I have inherited an extremely messy ASP/VBScript application which
is a pain for me to support. Now the customer is thinking about a
redesign. I'd like to rewrite the whole thing in Python but the app
has to meet some conditions like

- IIS frontend
- MSSQL db server
- Win32 authentication
- No 'ugly' URLs like http://server/cgi-bin/frontend.cgi?main.py
- Performance: intranet with ~ 1000 users

In the meantime I have searched the internet and found plenty of options:

- plain cgi with fastcgi and mod_rewrite for IIS to transform the URL
- quixote cgi with fastcgi and mod_rewrite
- Webware + wkcgi
- Python ASP (registering Python with Pywin32 as ASP language)
- mxODBC + SQL ODBC driver
- pyADO + SQL MDAC driver


Can those do Windows authentication though? I guess you could with
Python ASP. If you really are stuck with ASP/IIS/Windows, then you
might find using boo or ironpython easier since they work with .NET.
I'm just saying it is an option, not that you shouldn't use CPython.
- I'd like to do session handling in Python because ASP's session
object is quite limited and some of the ASP app's mess is caused
by trying to use it for compound data type storage. OTOH I could
pickle Python objects to a string and store that in an ASP session.


For storing complex data objects, instead of pickle, you can either use
..NET serialization: http://boo.codehaus.org/XML+Serialization
or db4objects, a GPL tool: http://www.db4o.com/
There is a sample of using boo with db4o here:
http://db4oboobrowser.sourceforge.net/
Or ORMs like Gentle.NET can work with MSSQL:
http://www.mertner.com/confluence/display/Gentle/Home
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
5411
by: Tim Howarth | last post by:
I'm (very non expert) trying to use a snippet of VBScript (to shut down Windows workstations) converted to Python but have hit a problem. The VBScript below work fine; pc="MyPC" Set oWMI=GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}!\\"_
4
4854
by: John Benson | last post by:
Hi, I'm in a tightly-secured environment where I may not be allowed to use Python for some scripting work, and may have to fall back on what came with Windows 2K. I'm cracking "VBScript in a Nutshell" from O'Reilly, and have found a number of disappointments: * can't find "Introspection" in the Index * no record types, just numerically-indexed arrays, so record handling is kludgy
1
2789
by: John Benson | last post by:
Yes, but I was referring to VBScript apart from the runtime children like Dictionary, Network etc., like the C language apart from the Standard Library. I agree, though, Dictionaries are cool, however supplied. ----- Original Message ----- From: "Christopher Weimann" <cweimann@k12hq.com> To: "John Benson" <jsbenson@bensonsystems.com> Cc: <python-list@python.org> Sent: Saturday, May 15, 2004 5:13 PM Subject: Re: Python vs. VBScript vs....
13
15272
by: yaipa | last post by:
What would be the common sense way of finding a binary pattern in a ..bin file, say some 200 bytes, and replacing it with an updated pattern of the same length at the same offset? Also, the pattern can occur on any byte boundary in the file, so chunking through the code at 16 bytes a frame maybe a problem. The file itself isn't so large, maybe 32 kbytes is all and the need for speed is not so great, but the need for accuracy in the...
3
9310
by: Valentina Boycheva | last post by:
Is there a way to make programs written in these two languages communicate with each other? I am pretty sure that VBScript can access a Python script because Python is COM compliant. On the other hand, Python might be able to call a VBScript through WSH. Can somebody provide a simple example? I have exactly 4 days of experience in Python (and fortunately, much more in VB6) Thanks.
1
5013
by: Valentina Boycheva | last post by:
Thanks for the reply. I already have "Learning Python" from Mark Lutz and David Ascher, which covers 2.3 (I am in 2.4). However, it seems like heavy artillery to me. What I want is, for instance, run a VBScript to get a function output and feed it to the Python script that called it. The reason is that because I feel more comfortable with VBScript and have written a small library of useful utilities, I don't want it to become obsolete. In...
1
2004
by: Larry Neylon | last post by:
Hi, I'm working on a VBScript application on IIS6 and I'm looking for some advice about the best way of replacing or improving session variable usage. The application is in a secure extranet environment. Currently the application has a search customers page with 10 search fields which list the results below the search fields. The requirement for this screen was that the user could return to this result page at any point from any page...
3
2014
by: aine_canby | last post by:
Hi, I'm working with a number of scripts which were written years ago for my company for Python 2.2, and I'd like to update for Python 2.5. I have written a script to add # -*- coding: cp1252 -*- to the beginning of all my scripts, and that has fixed the encoding issues. Another issue was the use of - from _xmlplus.dom import minidom
1
1473
by: verthe | last post by:
Hello, I have a python script I picked up from internet but basically I'm working with vbscript on the server side. However vbscript is not good for the task I want to perform (working with large integers for encryption). I would like to incorporate in vbscript the content of a variable generated with python without storing this info as a cookie on the users'computer. thank you for your help. Thierry
0
9582
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10580
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9157
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2993
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.