It seems to have something to do with the _formkey variable.  In the
session, I'm collecting formkeys of the form "source_5", "source_8", and
also "page_5" and even "default".  The form.accepts is failing because the
formkey does not match the form at the time it is evaluated.  I'm looking
for the "easy" way to set the name of the form manually.  The new book on
page 186 implies I can just set it in the "accepts" function call but that
does not seem to be working.  I'll continue to investigate this path.  (I'm
using version 1.65.11 on the mac, in source form).

EDIT:  I just eliminated "session" from the request.accepts function and it
worked.  This would cause problems with more than one person editing the
wiki at the same time, right?  I'll look more into how to make it work with
the "session" var in the call to form.accepts later.


On Mon, Aug 24, 2009 at 1:49 AM, mdipierro <mdipie...@cs.depaul.edu> wrote:

>
> Is it possible the restructured text function returns unicode instead
> of utf8?
>
> Are you sure accepts is executed?
>
> after/outside the if statement print the return value of accepts and
> print form.errors
>
> Massimo
>
> On Aug 23, 9:07 pm, Joe  Barnhart <joe.barnh...@gmail.com> wrote:
> > I'm still on Sqllite at this point.  The reason I'm a little mystified
> > is because I put a print statement just inside the "if form.accepts
> > (..." clause (just above the if request.vars.show) and it was never
> > executed.
> >
> > On Aug 23, 1:51 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> >
> > > Are you sure accept is failing and not insert? 'text' fields in MySQL
> > > have a size limit. Do you use MySQL?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to