473,396 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1428
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Timo Virkkala | last post by:
I tried to install Cheetah (0.9.15) and ran into trouble. When running the test suite, I get 61 failures and 57 errors. Most of the errors are "ImportError: No module named temp", with some...
1
by: Mike Grigorov | last post by:
I am using cheetah with jython 2.1 and I have problem generating templates that contain cyrillic text. Some texts are printed OK and others are not. I searched Jython and cheetah projects mailing...
13
by: Charlotte | last post by:
I am developing a web application and am looking for the best framework to do this in. I know this is an old question, and I have read the list archives and a couple of comparison pages on the web....
0
by: John | last post by:
My WEB is served from Win2K with sp 4 as well as a 2003 server. All patches and upgrades are in place on both machines. The issue is that my WEB delivers properly, accessing SQL, delivering all...
0
by: a | last post by:
cheetah - how do i use .refreshcaceh() in cheetah the doc is skimpy and doesnt tell more than you can use refreshcache with id to refresh a cache my code in html has #cache 30m, id =cachei ...
1
by: chun ping wang | last post by:
I am having trouble using cheetah and getting it to work the way i want (mvc) I have the following file. index.py : # imports BibleController and setting. BibleController.py that includes...
2
by: Sai Krishna M | last post by:
Hi, I have been working for some time developing web pages using python, modpython, cheetah. I find that this method has come inherent difficulties in it like if we want to generate a single...
0
by: manuel.reil | last post by:
Hello, currently i am developing a very small cms using python and cheetah. very early i have noticed that i was lacking the method to extract/recover the contents (html,text) from the html that...
1
by: brianrpsgt1 | last post by:
Newbie here.... I have been able to successful pull info from a MySQL DB, get the results and output them in an HTML format using Cheetah to the screen using IDLE. I am doing this on a Windows...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.