Python in ASP seems awkward?

Chris Tavares ctavaresNOctSPAM at develop.com.invalid
Fri Aug 11 14:23:50 EDT 2000


Hi all. I'm currently playing around with using Python in my ASP
pages, and I've come across a case where the indentation becomes
rather probablamatic. I was hoping there might be something
special in Python that I'm missing.

Right now, my pages (using JScript) have a lot of lines of the
form:

<% if( somecondition) { %>
Insert this text
<% } %>

In Python, it looks like I need to do this:

<%if somecondition: %>
Insert this text

But this doesn't work.

Is there something short of putting response.write calls
everywhere to let me use this style of page?

-Chris Tavares

P.S. Yeah, I know this style is bad form, but the files I'm
using are for the most part automatically generated. Also, I
have a coworker I'm trying to evangelize who wants to do that.



-----------------------------------------------------------

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com




More information about the Python-list mailing list