Working on event registration and related.

This commit is contained in:
Scott Idem
2021-08-17 20:53:01 -04:00
parent 2f037290d9
commit ad9417911a
11 changed files with 294 additions and 35 deletions

View File

@@ -83,7 +83,8 @@ def load_event_obj(
# Updated 2021-06-30
if inc_address: # This address is directly linked from the event record.
address_location_id = event_rec.get('address_location_id', None)
log.info('Need to include event location address data...')
address_location_id = event_rec.get('address_location_id', None) # Should this be location_address_id? Reverse the field naming?
log.debug(address_location_id)
if address_location_result := load_address_obj(
address_id = address_location_id,
@@ -98,6 +99,7 @@ def load_event_obj(
# Updated 2021-06-30
if inc_contact: # Just load all 3 of the contacts
log.info('Need to include event contacts (3x) data...')
contact_1_id = event_rec.get('contact_1_id', None)
log.debug(contact_1_id)
if contact_1_result := load_contact_obj(
@@ -146,6 +148,7 @@ def load_event_obj(
# Updated 2021-06-30
if inc_event_cfg:
log.info('Need to include event configuration...')
# event_id = event_rec.get('event_id', None)
# log.debug(event_id)
if event_cfg_result := load_event_cfg_obj(
@@ -169,6 +172,7 @@ def load_event_obj(
if inc_event_registration_list: pass
if inc_event_session_list:
log.info('Need to include event session list...')
#log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
data = {}
@@ -238,6 +242,8 @@ def load_event_obj(
if inc_event_track_list: pass
if inc_poc_event_person:
log.info('Need to include event poc event person data...')
log.info('OR??? Need to include event poc person data...?')
poc_event_person_obj = load_person_obj(person_id=poc_event_person_id)
log.debug(poc_event_person_obj)
#event_rec['poc_event_person'] = poc_event_person_obj