original_docstring: Copy relevant fields from Profile to ProfileForm.
docstring: Copy relevant fields from Profile to ProfileForm.
docstring_tokens: Copy relevant fields from Profile to ProfileForm .
code: def _copyProfileToForm(self, prof):
          """Copy relevant fields from Profile to ProfileForm."""
          # copy relevant fields from Profile to ProfileForm
          pf = ProfileForm()
          for field in pf.all_fields():
              if hasattr(prof, field.name):
                  # convert t-shirt string to Enum; just copy others
                  if field.name == 'teeShirtSize':
                      setattr(pf, field.name, getattr(TeeShirtSize, getattr(prof, field.name)))
                  else:
                      setattr(pf, field.name, getattr(prof, field.name))
          pf.check_initialized()
          return pf
code_tokens: def _copyProfileToForm ( self , prof ) : pf = ProfileForm ( ) for field in pf . all_fields ( ) : if hasattr ( prof , field . name ) : if field . name == 'teeShirtSize' : setattr ( pf , field . name , getattr ( TeeShirtSize , getattr ( prof , field . name ) ) ) else : setattr ( pf , field . name , getattr ( prof , field . name ) ) pf . check_initialized ( ) return pf
short_docstring: Copy relevant fields from Profile to ProfileForm.
short_docstring_tokens: Copy relevant fields from Profile to ProfileForm .
comment: """Copy relevant fields from Profile to ProfileForm."""$SEP$# copy relevant fields from Profile to ProfileForm
  $SEP$# convert t-shirt string to Enum; just copy others
  