ramp_database.tools.user
.set_user_by_instance¶
-
ramp_database.tools.user.
set_user_by_instance
(session, user, lastname, firstname, email, linkedin_url='', twitter_url='', facebook_url='', google_url='', github_url='', website_url='', bio='', is_want_news=True)¶ Set the information of a user.
- Parameters
- session
sqlalchemy.orm.Session
The session to directly perform the operation on the database.
- user
ramp_database.model.User
The user instance to update.
- lastnamestr
The user lastname.
- firstnamestr
The user firstname.
- emailstr
The user email address.
- linkedin_urlstr, default=’’
Linkedin URL.
- twitter_urlstr, default=’’
Twitter URL.
- facebook_urlstr, default=’’
Facebook URL.
- google_urlstr, default=’’
Google URL.
- github_urlstr, default=’’
GitHub URL.
- website_urlstr, default=’’
Website URL.
- biostr, default = ‘’
User biography.
- is_want_newsbool, default is True
User wish to receive some news.
- session