updating display_name

1 view
Skip to first unread message

kvaml

unread,
Nov 2, 2007, 8:16:18 AM11/2/07
to tg-registration
registration-0.3-py2.5.egg

This version of registration did not include the display_name in the
user_edit screen. When I added that field, changes were not reflected
in the database. To get this to work I made the following changes:

from <PROJECT> import model
....
def update_user(self, display_name, email, old_password,
password1, password2, user_name=None, **kwds):
"Updates the users information with new values."
#user = identity.current.user
user = model.User.get(identity.current.user.user_id)

This gets a user object that is tied to our session. (I am using
SQLAlchemy).

(I thought this would be of interest. I submitted an email yesterday,
but it never made the list)

Reply all
Reply to author
Forward
0 new messages