wierd asp problem

Scott Hathaway scott_hathaway at riskvision.com
Thu Aug 2 15:06:31 EDT 2001


I am trying to use Python (the latest version from ActiveState) with ASP on
IIS 5.

Here is the wierd problem I am having.  If I use:

<%@ language=Python %>
<%
class standard_template:
    br = "<br>"
    textColor   = "black"
    bgColor     = "white"

etc...

Things work fine.  If I try:

<script runat=server language=Python >
class standard_template:
    br = "<br>"
    textColor   = "black"
    bgColor     = "white"

etc...

I get:

Error Type:
Python ActiveX Scripting Engine (0x80020009)
Traceback (innermost last): IndentationError: expected an indented block
(line 2)
/asptemplates/standard_template.asp

I need to use the <script sytax because I need to include this class (and
use it) from VBScript in ASP.

Any ideas?

Thanks,
Scott





More information about the Python-list mailing list