This will work...

def working_view(request):

    return {'result' : 'ok' }


def make_app():

    config.add_route('a', '/a', request_method='GET')

    config.add_view(working_view, route_name='a', renderer='json')

That will go to /a with the method but now I try to use @view_config that 
I'ved used when not running in GAE


def make_app():

    config.add_route('test', '/test', request_method='GET')

    config.scan()


@view_config(route_name='test', renderer='json')

def testMe(request):

    return {'result' : 'hello'}


That, for some reason, will not pick up the /test and 404.  The view 
callable isn't correctly registered.  Maybe I'm doing something slightly 
wrong?


Thanks.




-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-devel/-/MC4ml48INpIJ.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to