<s> """<STR_LIT>""" <EOL> from models . app_user import AppUser <EOL> from google . appengine . api import users <EOL> def InitUser ( ) : <EOL> """<STR_LIT>""" <EOL> result = AppUser . query ( AppUser . user == users . get_current_user ( ) ) . fetch ( ) <EOL> if result : <EOL> app_user = result [ <NUM_LIT:0> ] <EOL> else : <EOL> app_user = AppUser ( user = users . get_current_user ( ) , <EOL> email = users . get_current_user ( ) . email ( ) ) <EOL> app_user . put ( ) <EOL> return app_user <EOL> def UpdateUserCredentials ( client_id , client_secret , refresh_token , <EOL> manager_account_id , developer_token ) : <EOL> """<STR_LIT>""" <EOL> app_user = AppUser . query ( AppUser . user == users . get_current_user ( ) ) . fetch ( ) [ <NUM_LIT:0> ] <EOL> app_user . client_id = client_id <EOL> app_user . client_secret = client_secret <EOL> app_user . refresh_token = refresh_token <EOL> app_user . manager_account_id = manager_account_id <EOL> app_user . developer_token = developer_token <EOL> app_user . put ( ) </s>
