<s> from . _base import SQLBaseStore <EOL> class ProfileStore ( SQLBaseStore ) : <EOL> def create_profile ( self , user_localpart ) : <EOL> return self . _simple_insert ( <EOL> table = "<STR_LIT>" , <EOL> values = { "<STR_LIT>" : user_localpart } , <EOL> desc = "<STR_LIT>" , <EOL> ) <EOL> def get_profile_displayname ( self , user_localpart ) : <EOL> return self . _simple_select_one_onecol ( <EOL> table = "<STR_LIT>" , <EOL> keyvalues = { "<STR_LIT>" : user_localpart } , <EOL> retcol = "<STR_LIT>" , <EOL> desc = "<STR_LIT>" , <EOL> ) <EOL> def set_profile_displayname ( self , user_localpart , new_displayname ) : <EOL> return self . _simple_update_one ( <EOL> table = "<STR_LIT>" , <EOL> keyvalues = { "<STR_LIT>" : user_localpart } , <EOL> updatevalues = { "<STR_LIT>" : new_displayname } , <EOL> desc = "<STR_LIT>" , <EOL> ) <EOL> def get_profile_avatar_url ( self , user_localpart ) : <EOL> return self . _simple_select_one_onecol ( <EOL> table = "<STR_LIT>" , <EOL> keyvalues = { "<STR_LIT>" : user_localpart } , <EOL> retcol = "<STR_LIT>" , <EOL> desc = "<STR_LIT>" , <EOL> ) <EOL> def set_profile_avatar_url ( self , user_localpart , new_avatar_url ) : <EOL> return self . _simple_update_one ( <EOL> table = "<STR_LIT>" , <EOL> keyvalues = { "<STR_LIT>" : user_localpart } , <EOL> updatevalues = { "<STR_LIT>" : new_avatar_url } , <EOL> desc = "<STR_LIT>" , <EOL> ) </s>
