Working on Cvent API related

This commit is contained in:
Scott Idem
2022-01-31 19:37:02 -05:00
parent 1d39a01ded
commit 779bbb2f82
9 changed files with 404 additions and 111 deletions

View File

@@ -141,6 +141,7 @@ def create_person_kiss(
def update_person_kiss(
person_id: int,
person_dict_obj: Person_Base,
account_id: int|None = None,
contact_id: int|None = None,
organization_id: int|None = None,
user_id: int|None = None,
@@ -168,6 +169,10 @@ def update_person_kiss(
person_obj.id = person_id # Is this needed?
person_dict['id'] = person_id
# Look for a account_id in the person_obj
# if account_id: pass
if account_id := person_obj.account_id: pass
# Look for a contact_id in the contact_obj
if contact_id: pass
elif person_obj.contact:
@@ -429,12 +434,14 @@ def load_person_obj(
inc_address = inc_address,
inc_contact = inc_contact,
inc_membership_cfg = inc_membership_cfg,
inc_membership_group = inc_membership_group, # The primary membership group, if there is one.
inc_membership_group_list = inc_membership_group_list, # All membership groups they are a part of.
# inc_membership_group = inc_membership_group, # The primary membership group, if there is one.
# inc_membership_group_list = inc_membership_group_list, # All membership groups they are a part of.
inc_membership_person_group_list = inc_membership_person_group_list,
inc_membership_person_profile = inc_membership_person_profile,
inc_membership_person_profile_cust = inc_membership_person_profile_cust,
inc_membership_type = inc_membership_type, # The primary membership type, if there is one.
inc_membership_type_list = inc_membership_type_list, # All the membership types they are a part of.
# inc_membership_person_profile_cust = inc_membership_person_profile_cust,
inc_membership_person_type = inc_membership_person_type,
# inc_membership_type = inc_membership_type, # The primary membership type, if there is one.
# inc_membership_type_list = inc_membership_type_list, # All the membership types they are a part of.
# inc_person = inc_person,
inc_product = inc_product,
# inc_product_list = inc_product_list,