> It is unlikely that the problem is with layout template. It looks like
> maincontent is printed somewhere.
> Can you comment out `print render.layout(....)` and see what happens?

I rewritten my code as below:

def GET(self, selected_file):
   maincontent = web.render(select_file)
   #print render.layout(head, sidemenu, maincontent)

the output is the content of "maincontent", it seem that the
web.render() will send the result to the output even though there is
not "print".
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to