ramp_database.model.User

class ramp_database.model.User(name, hashed_password, lastname, firstname, email, access_level='user', hidden_notes='', linkedin_url='', twitter_url='', facebook_url='', google_url='', github_url='', website_url='', bio='', is_want_news=True)

User table.

Parameters
namestr

The user name.

hashed_passwordstr

The hashed password.

lastnamestr

The user’s last name.

firstnamestr

The user’s first name.

emailstr

The user’s email

access_level{‘admin’, ‘user’, ‘asked’}

The user’s admin level.

hidden_notesstr

Some hidden notes.

signup_timestampdatetime

The date and time of the user’s sign-up.

linkedin_urlstr

The user’s LinkedIn URL.

twitter_urlstr

The user’s Twitter URL.

facebook_urlstr

The user’s Facebook URL.

google_urlstr

The user’s Google URL.

github_urlstr

The user’s GitHub URL.

website_urlstr

The user’s personal website URL.

biostr

The user’s biography.

is_want_newsbool

Whether or not the user wants to receive RAMP news.

Attributes
idint

The ID of the table row.

namestr

The user name.

hashed_passwordstr

The hashed password.

lastnamestr

The user’s last name.

firstnamestr

The user’s first name.

emailstr

The user’s email

access_level{‘admin’, ‘user’, ‘asked’, ‘not_confirmed’}

The user’s admin level. The possible access level are:

  • ‘admin’ : RAMP administrator;

  • ‘user’: RAMP user;

  • ‘asked’: asked to be a RAMP user and confirmed via emails;

  • ‘not_confirmed’: signed-up through the frontend but did not confirm yet by email.

hidden_notesstr

Some hidden notes.

signup_timestampdatetime

The date and time of the user’s sign-up.

linkedin_urlstr

The user’s LinkedIn URL.

twitter_urlstr

The user’s Twitter URL.

facebook_urlstr

The user’s Facebook URL.

google_urlstr

The user’s Google URL.

github_urlstr

The user’s GitHub URL.

website_urlstr

The user’s personal website URL.

biostr

The user’s biography.

is_want_newsbool

Whether or not the user wants to receive RAMP news.

is_authenticatedbool

Whether or not the user logged-in.

admined_eventslist of ramp_database.model.EventAdmin

A back-reference to the events administrated by the user.

submission_similarityslist of ramp_database.model.SubmissionSimilarity

A back-reference to the submission similarity.

admined_teamslist of ramp_database.model.Team

A back-reference to the teams administrated by the user.

__init__(name, hashed_password, lastname, firstname, email, access_level='user', hidden_notes='', linkedin_url='', twitter_url='', facebook_url='', google_url='', github_url='', website_url='', bio='', is_want_news=True)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.