On Jul 17, 8:43 pm, Cowmix <[EMAIL PROTECTED]> wrote:
> > > Is there any other place I can put debug code to track this down?
>
> > can you share some of the code?
>
> > that would be the handler (GET) and the template
>
> First.. the Oracle version of db.py:
>
> http://python.pastebin.com/fc6530da
>
> The template (test.html):
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
> TR/html4/strict.dtd">
> <html>
>
> <head>
> <meta content="text/html; charset=ISO-8859-1"
> http-equiv="content-type">
> <link rel="stylesheet" type="text/css"
> href="/static/css/test.css" />
>
> <title> FOO BAR</tile>
> </head>
> <body>
> I'm a webpy app.
> </body>
>
> ... and the code of my GET:
>
> class index:
> def GET(self):
> print render.test()
> recz = web.query("select firstname from elig_mbr where
> lastname='FOO'", vars=locals())
> print recz.list()
try this:
#the template (test.html)
$def with(recz)
<ul>
$for rec in recz:
<li>$rec.filed_name</li>
</ul>
# the handler
class index:
def GET(self):
recz = web.query("select firstname from elig_mbr where
lastname='FOO'", vars=locals())
print render.test(recz)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---