Bugs item #1071645, was opened at 2004-11-23 04:11
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1071645&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: com
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: Sándor Pálfy (netchan)
Assigned to: Nobody/Anonymous (nobody)
Summary: Indentation error when an ASP page contains only python code
Initial Comment:
The follwing asp file causes "Internal Server Error -
ASP error":
-----------------------------------------
<script language="python" runat="server">
def a():
b=1
</script>
-----------------------------------------
Error details:
Python ActiveX Scripting Engine (0x80020009)
expected an indented block
/indenttest.asp, line 3
b=1
Now, the same page surrounded with simple <html> tags
works just fine:
-----------------------------------------
<html>
<script language="python" runat="server">
def a():
b=1
</script>
</html>
-----------------------------------------
The same error happens even if you use the src
attribute of the script tag for including a regular
something.py file.
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2012-01-27 21:30
Message:
Sorry for the many year delay, but I don;t think I can do anything about
this - it is all under IIS's control
----------------------------------------------------------------------
Comment By: Sándor Pálfy (netchan)
Date: 2004-11-23 04:13
Message:
Logged In: YES
user_id=380124
The environment:
Windows XP SP2, all patches.
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit
(Intel)] on win32
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1071645&group_id=78018
|