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 _copySessionToForm(self, session):
          """Copy relevant fields from Conference to ConferenceForm."""
          cs = SessionForm()
          for field in cs.all_fields():
              if hasattr(session, field.name):
                  # convert Date to date string; just copy others
                  if field.name.endswith('date'):
                      setattr(cs, field.name, str(getattr(session, field.name)))
                  elif field.name.endswith('Time'):
                      setattr(cs, field.name, str(getattr(session, field.name)))
                  else:
                      setattr(cs, field.name, getattr(session, field.name))
              elif field.name == "websafeKey":
                  setattr(cs, field.name, session.key.urlsafe())
          cs.check_initialized()
          return cs
code_tokens: def _copySessionToForm ( self , session ) : cs = SessionForm ( ) for field in cs . all_fields ( ) : if hasattr ( session , field . name ) : if field . name . endswith ( 'date' ) : setattr ( cs , field . name , str ( getattr ( session , field . name ) ) ) elif field . name . endswith ( 'Time' ) : setattr ( cs , field . name , str ( getattr ( session , field . name ) ) ) else : setattr ( cs , field . name , getattr ( session , field . name ) ) elif field . name == "websafeKey" : setattr ( cs , field . name , session . key . urlsafe ( ) ) cs . check_initialized ( ) return cs
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
  