try like this:
render = web.template.render('templates/', cache=False)
class index:
def GET(self):
todos = web.select('todo')
# print render.error(list(todos))
# return False
print render.index(todos)
On Sat, Apr 5, 2008 at 6:20 PM, foobarmus <[EMAIL PROTECTED]> wrote:
>
> I'm sure this is a no brainer, but it's driving me crazy...
>
> render = web.template.render()
>
> class Page:
> def my_render:
> return render.<here I need to get the value of
> self.template>()
>
> class foo(Page):
> def GET(self):
> self.template = "foo"
> return self.my_render()
> >
>
--
http://twitter.com/qichangxing
http://blog.hi0791.com (build with web.py)
http://www.baicai.com 百才招聘
Gtalk: iexper(at)gmail.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---