The problem is that you may have both request.get_vars and
request.post_vars.

replacing:


    if form.accepts(request.vars, session):

with

    if form.accepts(request.post_vars, session):

should fix the problem.

On Oct 9, 11:14 pm, John Tynan <jgty...@gmail.com> wrote:
> Has anyone here tried to display variables from request.vars in a form field?
>
> I am getting a strange result, where the variables are displayed
> properly on the form
>
> However, after the form is submitted, I notice that the variables are
> duplicated.  See this screen capture:
>
> http://publicradioroadtrip.googlecode.com/issues/attachment?aid=42255...
>
> These variables also seem to have the pipe character on either side
> which tells me I might be somehow saving a list into the form,
> something like that.
>
> Here is the code I'm using for the add_story 
> function:http://code.google.com/p/publicradioroadtrip/source/browse/controller...
>
> Any suggestions you might have are appreciated.
>
> --http://opensourcebroadcasting.net
> Email: jgty...@gmail.com
> Phone: 510-859-3698

Reply via email to