original_docstring: Get user Profile and return to user, possibly updating it first.
docstring: Get user Profile and return to user, possibly updating it first.
docstring_tokens: Get user Profile and return to user possibly updating it first .
code: def _doProfile(self, save_request=None):
          """Get user Profile and return to user, possibly updating it first."""
          # get user Profile
          prof = self._getProfileFromUser()
  
          # if saveProfile(), process user-modifyable fields
          if save_request:
              for field in ('displayName', 'teeShirtSize'):
                  if hasattr(save_request, field):
                      val = getattr(save_request, field)
                      if val:
                          setattr(prof, field, str(val))
                          prof.put()
  
          # return ProfileForm
          return self._copyProfileToForm(prof)
code_tokens: def _doProfile ( self , save_request = None ) : prof = self . _getProfileFromUser ( ) if save_request : for field in ( 'displayName' , 'teeShirtSize' ) : if hasattr ( save_request , field ) : val = getattr ( save_request , field ) if val : setattr ( prof , field , str ( val ) ) prof . put ( ) return self . _copyProfileToForm ( prof )
short_docstring: Get user Profile and return to user, possibly updating it first.
short_docstring_tokens: Get user Profile and return to user possibly updating it first .
comment: """Get user Profile and return to user, possibly updating it first."""$SEP$# get user Profile
  $SEP$# if saveProfile(), process user-modifyable fields
  $SEP$# return ProfileForm
  