web.py + cheetah delivering incomplete pages

W

wolfgang.lipp

hi,

yesterday i started with web.py / flup / cheetah, and managed to get a
first webpage to diaplay on my windows box running apache.
unfortunately, the following code

import web


urls = (
'(.*)', 'view'
)

class view:
def GET( self, name ):
web.render( 'view.html' )
web.internalerror = web.debugerror

if __name__ == '__main__':

web.run( urls )

using this template, view.html:

<div>
#if $name
I just wanted to say hello to $name.
#else
Hello, world!
#end if
</div>

#set $ninetyNine = 99

#for $count in $range($ninetyNine, 0, -1)
<div>$count</div>
#end for

<h1>finis.</h1>

will never print out the finis line -- it always stops short of that,
displaying a 7 at the bottom of the page. it is tho the last few lines
end up in a buffer and get see the light of day. any ideas?

_wolf
 
W

wolfgang.lipp

yeah, posted it there too, but, you see, there are but 95 members in
that group -- guess it's more productive to ask this right here. we'll
see.

_w.
 
P

Peter Hansen

yeah, posted it there too, but, you see, there are but 95 members in
that group -- guess it's more productive to ask this right here. we'll
see.

There's a good chance that about 80 of those 95 people read this
newsgroup regularly, and that this newsgroup has only a small handful of
people who know anything about web.py but who aren't in that set of
95... and some of them might not notice your posting.

But, as you said, we'll see. ;-)

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top