original_docstring: Copy relevant fields from Conference to ConferenceForm.
docstring: Copy relevant fields from Conference to ConferenceForm.
docstring_tokens: Copy relevant fields from Conference to ConferenceForm .
code: def _copyConferenceToForm(self, conf, displayName):
          """Copy relevant fields from Conference to ConferenceForm."""
          cf = ConferenceForm()
          for field in cf.all_fields():
              if hasattr(conf, field.name):
                  # convert Date to date string; just copy others
                  if field.name.endswith('Date'):
                      setattr(cf, field.name, str(getattr(conf, field.name)))
                  else:
                      setattr(cf, field.name, getattr(conf, field.name))
              elif field.name == "websafeKey":
                  setattr(cf, field.name, conf.key.urlsafe())
          if displayName:
              setattr(cf, 'organizerDisplayName', displayName)
          cf.check_initialized()
          return cf
code_tokens: def _copyConferenceToForm ( self , conf , displayName ) : cf = ConferenceForm ( ) for field in cf . all_fields ( ) : if hasattr ( conf , field . name ) : if field . name . endswith ( 'Date' ) : setattr ( cf , field . name , str ( getattr ( conf , field . name ) ) ) else : setattr ( cf , field . name , getattr ( conf , field . name ) ) elif field . name == "websafeKey" : setattr ( cf , field . name , conf . key . urlsafe ( ) ) if displayName : setattr ( cf , 'organizerDisplayName' , displayName ) cf . check_initialized ( ) return cf
short_docstring: Copy relevant fields from Conference to ConferenceForm.
short_docstring_tokens: Copy relevant fields from Conference to ConferenceForm .
comment: """Copy relevant fields from Conference to ConferenceForm."""$SEP$# convert Date to date string; just copy others
  