[web2py] Re: Problem trying to insert an image with CKEditor and SQLFORM

2010-06-30 Thread MikeEllis
I now have a workaround, but I don't like it very much. By checking the length of request.vars before calling form.accepts(), I can force the request formkey to match the session formkey, e.g. if len(request.vars): request.vars._formkey = session['_formkey[page_create]'] if form.

[web2py] RE: Problem trying to insert an image with CKEditor and SQLFORM

2010-06-29 Thread MikeEllis
Apologies for new post with same title but adding new info to the old thread doesn't seem to be making it current in the discussions and I'm really stuck trying to understand the problem. Anyway the original post plus some new info I added just is at http://groups.google.com/group/web2py/browse_t

[web2py] Re: Problem trying to insert an image with CKEditor and SQLFORM

2010-06-29 Thread MikeEllis
This one still has me stumped so I'm taking the liberty of adding some more info to make it current in the discussions. As I noted in the earlier post, the problem has to to do with CKEditor's image insertion dialog somehow triggering a form submission. This is really puzzling, because the link