conference.py
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
Copy relevant fields from Profile to ProfileForm.
Copy relevant fields from Profile to ProfileForm.
Copy relevant fields from Profile to ProfileForm .
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
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
Copy relevant fields from Profile to ProfileForm.
Copy relevant fields from Profile to ProfileForm .
"""Copy relevant fields from Profile to ProfileForm.""" # copy relevant fields from Profile to ProfileForm # convert t-shirt string to Enum; just copy others
self
prof