I set my app to require registration approval and cannot set the registration_key programmatically. I can set it through appadmin interface. Here is my code: @auth.requires_membership('librarian') def show_reader(): user = db.auth_user(request.args(0, cast=int)) form=FORM(INPUT(_type='submit')) if form.accepts(request,session): response.flash = 'Użytkownik został aktywowany' user.registration_key='' return locals()
form is visible only if registration_key is set to 'pending'. When I click submit it seems to work because the form disappears(and if i print registration key in view i get empty string), but when i refresh the page the button is back and appadmin shows that registration key is set to 'pending'. Is there something I'm missing? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.