Sorry, it was my mistake -- my code was not taking effect the first time. Please disregard my request for help.
On Jul 17, 7:15 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > Which version of web2py? I cannot reproduce this. > > Can you try add > > db.auth_table.writable=True > > before accepts? Does it change anything? > > Massimo > > On Jul 17, 5:45 pm, Dan <danbr...@gmail.com> wrote: > > > I want to be able to approve user registrations using the web (because > > I'm running on GAE), and would like to build a set of forms for > > administrators to set up group memberships. As a first step, I've got > > a list of users that are pending approval, and I will need to clear > > the value of the registration_key field to do the approval. However, > > when I attempt to delete the contents of the registration_key, no > > change happens. It's strange because when I make an edit to the field > > value, the change sticks. Why can't I make the field empty? > > > Here is the definition of registration_key from my models.py file: > > db.Field('registration_key', 'string', length=128, writable=False, > > readable=False,default=''), > > > Here is the code from my controller. Let me know if I should include > > anything else (registration_key is of type 'text' and this happens > > when running on GAE or SQLite) > > > form=SQLFORM > > (auth.settings.table_user,user_id,ignore_rw=True,deletable=True) > > if form.accepts(request.vars, session): > > auth.settings.table_user[user_id] = form.vars > > form=SQLFORM > > (auth.settings.table_user,user_id,ignore_rw=True,deletable=True) > > elif form.errors: > > response.flash=T("Oops, form is invalid.") > > return dict(form=form) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---