axh...@gmail.com
unread,May 3, 2009, 3:42:53 PM5/3/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to juno-framework
Hi!
I have a simple webapp
-------------
from juno import *
init({'use_sessions':True, 'dev_port':8090, 'use_templates':True,
'template_lib': 'mako'})
@route("/test1")
def test1(web):
return 'test1'
@route("/test2")
def test2(web):
# do something
return test1(web)
if __name__ == '__main__':
run()
--------------
When I access /test2 I get
Internal Server Error
Explanation: (<type 'exceptions.TypeError'>, TypeError("'NoneType'
object is not callable",), <traceback object at 0x90b7edc>)
How do I redirect /test2 to /test1 without using redirect() (a round
trip)
Ashish
How do I redirect? I don't