Ahh cool, thanks. Found my problem. Combination of bad psp indenting and
had my counter in the wrong loop.
thanks,
ian
At 12:27 PM 8/8/2003, you wrote:
>The easiest way to debug .psp files is to look in the cache/psp directory
>for the python version of the file. If you open that in a python aware
>editor (pywin) you should be able to quickly see the indentation problem.
>
>-Aaron
>
>Ian wrote:
>
>>I was hoping someone could spot the error in my code. I've got an if
>>statement inside a while loop. And i seem to either keep getting an
>>'expected an indent block' or 'unexpected unindent' or it complains that
>>the syntax for the counter for my while loop is wrong. here's the entire
>>code. I remove all the static text so there's less junk for you to look
>>through. The html in the code should be part of the if statement. thanks
>>
>><%@ page imports="ged,re"%>
>><table>
>><%
>># read in the data from the bac-list file
>>pageroot = ged.pageroot
>>bacfile = pageroot + "/resources/bac-list.txt"
>>baclist = open(bacfile, 'r')
>>myfile = baclist.readlines()
>>
>># loop through the data and build the html
>>
>>count = 0
>>while count < len(myfile):%>
>><%curline = re.split('\t', myfile[count])%>
>><%if curline[0][0] <> '#':%>
>><%
>>clone = curline[1][3:9]
>>gene = curline[1][0:2] + ' ' + curline[0]
>>count = count + 1%>
>>
>> <tr>
>> <td width="50%"><%=gene%></td>
>> <td width="50%"><a
>> href="annot-seq.psp?seq=<%=clone%>"><%=clone%></a>
>> </td>
>> </tr>
>><%end%>
>><%end%>
>> </table>
>>
>>
>>
>>-------------------------------------------------------
>>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>>Data Reports, E-commerce, Portals, and Forums are available now.
>>Download today and enter to win an XBOX or Visual Studio .NET.
>>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
>>_______________________________________________
>>Webware-discuss mailing list
>>Webware-discuss@...
>>https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
>
>--
>-Aaron
>http://www.MetroNY.com/
>"I don't know what's wrong with my television set. I was getting
>C-Span and the Home Shopping Network on the same station.
>I actually bought a congressman."
> - Bruce Baum
>
>
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
>_______________________________________________
>Webware-discuss mailing list
>Webware-discuss@...
>https://lists.sourceforge.net/lists/listinfo/webware-discuss
|