A lot of work on event related modules. Also a lot of clean up.

This commit is contained in:
Scott Idem
2021-06-07 17:32:42 -04:00
parent 33ec6a4acb
commit 63baf4b2e9
9 changed files with 27 additions and 14 deletions

View File

@@ -24,15 +24,17 @@ def load_event_presentation_obj(
enabled: str = 'enabled', # enabled, disabled, all
limit: int = 1000,
inc_event_abstract_list: bool = False,
inc_event_badge: bool = False,
#inc_event_badge_list: bool = False,
inc_event_device_list: bool = False,
inc_event_file_list: bool = False,
inc_event_person: bool = False,
inc_event_person_list: bool = False,
inc_event_presenter_list: bool = False,
#inc_event_cfg: bool = False,
#inc_poc_event_person: bool = False,
#inc_poc_person: bool = False,
#inc_user: bool = False,
inc_event_registration: bool = False,
#inc_event_registration_list: bool = False,
inc_person: bool = False,
inc_user: bool = False,
) -> Event_Presentation_Base|bool:
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
@@ -110,10 +112,13 @@ def load_event_presentation_obj(
event_presenter_id=event_presenter_id,
enabled=enabled,
inc_event_abstract_list=inc_event_abstract_list,
inc_event_badge=inc_event_badge,
inc_event_device_list=inc_event_device_list,
inc_event_file_list=inc_event_file_list,
inc_event_person_list=inc_event_person_list,
inc_event_presenter_list=inc_event_presenter_list,
inc_event_person=inc_event_person,
inc_event_registration=inc_event_registration,
inc_person=inc_person,
inc_user=inc_user,
):
data = event_presenter_obj.dict(by_alias=True, exclude_unset=True)
event_presenter_obj_li.append(data)