wierd asp problem
Volucris
volucris at hotmail.com
Fri Aug 3 05:02:53 EDT 2001
I think I heard somewhere that you need to indent your entire script:
<script runat=server language=Python >
class standard_template:
br = "<br>"
textColor = "black"
bgColor = "white"
etc...
Of course, I could be entirely wrong. HTH.
--
Volucris (a) hotmail.com
"Eu não falo uma única palavra do português."
"Scott Hathaway" <scott_hathaway at riskvision.com> wrote in message
news:3b69a492.0 at 216.0.152.7...
> 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