11 Mar
2005
11 Mar
'05
12:34 a.m.
I must be a total moron: I have this: def query(): return dbpool.runQuery("SELECT english FROM lang WHERE spanish LIKE 'hola'") def result(res): if res: print res[0][0] else: print "Failed." def words(ctx, data): query().addCallback(result) class PData(rend.Page): addSlash=True docFactory = loaders.stan(tags.html[ tags.div(data="words")[ words ]]) And I get this at the terminal, which is correct: 2005/03/10 23:30 GMT [HTTPChannel,0,148.241.73.37] 148.241.73.37 - - [10/Mar/2005:23:30:09 +0000] "GET / HTTP/1.1" 200 126 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" 2005/03/10 23:30 GMT [-] hello But I get a big red None on the web.