469,306 Members | 1,658 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

web.py + cheetah delivering incomplete pages

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

Feb 3 '06 #1
3 1322
hi, i think you'd have better luck at
http://groups.google.com/group/webpy

Feb 3 '06 #2
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.

Feb 3 '06 #3
wo***********@gmail.com wrote:
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

Feb 3 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Timo Virkkala | last post: by
13 posts views Thread by Charlotte | last post: by
reply views Thread by John | last post: by
1 post views Thread by chun ping wang | last post: by
2 posts views Thread by Sai Krishna M | last post: by
1 post views Thread by brianrpsgt1 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.