OK, here's the deal. There is something timing-related about having a large amount of markup to process and whether the controller is called once or twice. On small amounts of text, the controller is called once for each press of the "show" or "save" buttons. On large text blocks, where there is about 1/2 sec. or longer taken to process the text in the controller, it is called twice for each button press.
To eliminate the dependency, I thought I would use Ajax to call the text processing asynchronously. That's not going too well yet -- the text conversion method gets called but the data never appears in the page at the <div id="target"> tag. Not sure why yet. -- Joe On Mon, Aug 24, 2009 at 2:48 PM, Joe Barnhart <joe.barnh...@gmail.com>wrote: > Hmmmm... You are right sir. Every time I press the "show" or "save" > button, the controller gets called twice. This requires further study! I > get to learn more about when things get called in web2py, which is something > I wanted to have a better feel for anyway. > > -- Joe > > > > On Mon, Aug 24, 2009 at 11:36 AM, mdipierro <mdipie...@cs.depaul.edu>wrote: > >> >> removing session from accepts(...,session,...) will remove the symptom >> but not the problem. The problem is that something is making an extra >> call to the action that generates the form thus resetting the >> _formkey. >> >> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---