Re: 'url' function from Forms section in the documentation

2010-08-23 Thread Wouter Van Hemel
On 20 August 2010 20:56, Mike Orr wrote: > On Fri, Aug 20, 2010 at 10:49 AM, Mike Orr wrote: >> On Tue, Aug 17, 2010 at 9:16 AM, Wouter Van Hemel >> That example is taking more shortcuts than it should, and may be a >> leftover from an older version of Pylons. > > Added a ticket for this. > > htt

Re: 'url' function from Forms section in the documentation

2010-08-20 Thread Mike Orr
On Fri, Aug 20, 2010 at 10:49 AM, Mike Orr wrote: > On Tue, Aug 17, 2010 at 9:16 AM, Wouter Van Hemel > That example is taking more shortcuts than it should, and may be a > leftover from an older version of Pylons. Added a ticket for this. http://pylonshq.com/project/pylonshq/ticket/702 -- Mik

Re: 'url' function from Forms section in the documentation

2010-08-20 Thread Mike Orr
On Tue, Aug 17, 2010 at 9:16 AM, Wouter Van Hemel wrote: > Hello, > > I'm new to Pylons. In the Forms section of the 1.0 documentation on > the Pylons website we're given the following example: > > def email(self): >    # Code to perform some action based on the form data >    # ... >    redirect(

Re: 'url' function from Forms section in the documentation

2010-08-20 Thread Eric Rasmussen
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(co

Re: 'url' function from Forms section in the documentation

2010-08-20 Thread Wouter Van Hemel
On Aug 17, 7:16 pm, Wouter Van Hemel 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 = Fal

'url' function from Forms section in the documentation

2010-08-18 Thread Wouter Van Hemel
Hello, I'm new to Pylons. In the Forms section of the 1.0 documentation on the Pylons website we're given the following example: def email(self): # Code to perform some action based on the form data # ... redirect(url(action='result')) ... but in a default 1.0 installation, the 'ur