I'm not sure why it's defaulting to '/content/', but you can pass a
controller argument to the URL function. If you're trying to redirect to
action 'result' of controller 'hello', try this instead:

def email(self):
   # Code to perform some action based on the form data
   # ...
   redirect(url(controller='hello', action='result'))





On Fri, Aug 20, 2010 at 5:31 AM, Wouter Van Hemel <
[email protected]> wrote:

> On Aug 17, 7:16 pm, Wouter Van Hemel <[email protected]>
> wrote:
> > [...]
> > ... but in a default 1.0 installation, the 'url' function takes me to
> > /content/result (which doesn't exist) instead of /hello/result. I
> > didn't touch config/routing.py; it still says:
> >
> >     map.minimization = False
> >     map.explicit = False
> >
> > Should I use url.current() here instead?
> >
> > And how do I change this default '/content/' controller to point to
> > '/non-existent/' or something similar – where is it defined?
> >
>
> Sorry guys, but I really want to know if the form example should use
> url.current() instead of url(), and why url() sends me to '/content/'
> by default. As it stands, the documentation doesn't match the
> behaviour of Pylons 1.0.
>
> Thanks for any explanations!
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to