Hi All,

So, I have a view like this:

@view_config(name="chris_test",
             renderer="templates/chris.pt")
class ChrisTest(object):

    def __init__(self,context,request):
        self.context = context
        self.request = request

    def __call__(self):
        if self.request.GET.get('go'):
            return HTTPFound(location='/?gone=1')
        return dict(
            x=1,
            y=2,
            )

...which works as I want but I'd like to know why ;-)

Where's the documentation on the conditions in which the renderer will be used versus when the return value (HTTPFound in this case) will be returned and the renderer will be ignored?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
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