Hmm, this is a bit hard to follow, and I don't readily see the problem. Somewhere, though, on the initial load, it is creating the form twice but displaying the first version in the view (so the _formkey in the view is outdated). Looks like the reload also creates the form twice, but it is the second one that gets displayed, so the _formkey remains valid. From the code you've shown, I don't quite see how that is happening. Also, where is gekose_skrywers() called -- don't see any reference to it in the early code posted?
Anthony On Thursday, June 28, 2012 8:59:09 AM UTC-4, Johann Spies wrote: > > > > >> In Module: >> >> > Sorry here is the correct code for the function in the module: > > def gekose_skrywers(db, ids): > import pdb > request = current.request > session = current.session > if ids: > session.ids = ids > session.skrywers = set([x.uuid for x in (db.akb_authors.id.belongs > (ids)).select(db.akb_authors.uuid)]) > redirect(URL(r = request, c = 'articles', f = 'add_article' > ) > ) > else: > redirect(URL(r = request, c = 'default', f = 'index')) > return > > > Regards > Johann >

