web.py + cheetah delivering incomplete pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wolfgang.lipp@gmail.com

    #1

    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.internalerr or = 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($ninetyN ine, 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

  • Guyon Morée

    #2
    Re: web.py + cheetah delivering incomplete pages

    hi, i think you'd have better luck at


    Comment

    • wolfgang.lipp@gmail.com

      #3
      Re: web.py + cheetah delivering incomplete pages

      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.

      Comment

      • Peter Hansen

        #4
        Re: web.py + cheetah delivering incomplete pages

        wolfgang.lipp@g mail.com wrote:[color=blue]
        > 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.[/color]

        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

        Comment

        Working...