contact-person-profile-csv-imp-local 0.0.48__py3-none-any.whl → 0.0.50__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,10 +124,7 @@ class CSVToContactPersonProfile(
124
124
  'contact_location', 'user_externals_local',
125
125
  'organizations_local', 'domain_local',
126
126
  'importers_local']
127
- GenericCRUD.__init__(self, default_schema_name="field",
128
- default_column_name="field_id",
129
- default_table_name="field_table",
130
- default_view_table_name="field_view",
127
+ GenericCRUD.__init__(self, default_schema_name="entity_type",
131
128
  is_test_data=is_test_data)
132
129
  self.contact_entity_type_id = \
133
130
  self.select_one_value_by_column_and_value(
@@ -222,7 +219,6 @@ class CSVToContactPersonProfile(
222
219
  self.logger.error("Couldn't find profile_id in profile_view by email_address.")
223
220
  raise Exception("Couldn't find profile_id in user_external or profile_view.")
224
221
  system_id = system_id or CONTACT_PERSON_PROFILE_CSV_SYSTEM_ID
225
- self.set_schema(schema_name="field")
226
222
  self.list_of_group_dicts = list_of_group_dicts if list_of_group_dicts else []
227
223
  '''
228
224
  profile_id = ProfilesLocal().select_one_value_by_column_and_value(
@@ -309,6 +305,22 @@ class CSVToContactPersonProfile(
309
305
  contact_dict['is_test_data'] = self.is_test_data
310
306
 
311
307
  # TODO Please call get_display_name(first_name, last_name, organization) if display_as is empty
308
+
309
+ # for phone in ['phone1', 'phone2', 'phone3']:
310
+ # if contact_dict[phone] is None:
311
+ # continue
312
+ # phone_data = process_phone(original_phone_number=contact_dict[phone])
313
+ # if phone_data is None:
314
+ # continue
315
+ # else:
316
+ # contact_dict[phone] = phone_data['normalized_phone_number']
317
+
318
+ # contact_dict['first_name'] = process_first_name(
319
+ # original_first_name=contact_dict['first_name'])
320
+ # contact_dict['last_name'] = process_last_name(
321
+ # original_last_name=contact_dict['last_name'])
322
+
323
+
312
324
  # TODO This should be executed also by Google Contact Sync (please make sure it is in
313
325
  # people-local-python-package i.e. get_display_name(first_name, last_name, organization) -> str
314
326
  if contact_dict.get('display_as') is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: contact-person-profile-csv-imp-local
3
- Version: 0.0.48
3
+ Version: 0.0.50
4
4
  Summary: PyPI Package for Circles CSVToContactPersonProfile-local Local/Remote Python
5
5
  Home-page: https://github.com/circles-zone/contact-person-profile-csv-imp-local-python-package
6
6
  Author: Circles
@@ -12,7 +12,7 @@ Requires-Dist: contact-local>=0.0.48
12
12
  Requires-Dist: logger-local>=0.0.135
13
13
  Requires-Dist: database-mysql-local>=0.1.1
14
14
  Requires-Dist: user-context-remote>=0.0.77
15
- Requires-Dist: contact-email-address-local>=0.0.8
15
+ Requires-Dist: contact-email-address-local>=0.0.40.1234
16
16
  Requires-Dist: contact-group-local>=0.0.68
17
17
  Requires-Dist: contact-location-local>=0.0.14
18
18
  Requires-Dist: contact-notes-local>=0.0.33
@@ -1,7 +1,7 @@
1
- contact_person_profile_csv_imp_local/CSVToContactPersonProfile.py,sha256=7es96MO3T8BImP_s5NuImiWDYWvhow22rAhW-viLSsM,52300
1
+ contact_person_profile_csv_imp_local/CSVToContactPersonProfile.py,sha256=4sUZRqO8_s_uxPEB5VFbwvHvmCKqnaKW8-T49VaJZJs,52782
2
2
  contact_person_profile_csv_imp_local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  contact_person_profile_csv_imp_local/contact_person_profile_csv_imp_local_constants.py,sha256=SsMFKnI7y3P_kQxH21rxKnX7H4MZlemBy5vuv_Ns_a4,1180
4
- contact_person_profile_csv_imp_local-0.0.48.dist-info/METADATA,sha256=3-jN5sli2l_DxiUZqDBnDjUEOsvUenHsXAuJKgXwtr8,1583
5
- contact_person_profile_csv_imp_local-0.0.48.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- contact_person_profile_csv_imp_local-0.0.48.dist-info/top_level.txt,sha256=at6BnVzULDB109KZx9Cl9ClCHU4c0ykfV38WX-QR71U,37
7
- contact_person_profile_csv_imp_local-0.0.48.dist-info/RECORD,,
4
+ contact_person_profile_csv_imp_local-0.0.50.dist-info/METADATA,sha256=sI9EXLOEYRrGb19fOKD-VLs1feswm8JL06rHFQ5JmpM,1589
5
+ contact_person_profile_csv_imp_local-0.0.50.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ contact_person_profile_csv_imp_local-0.0.50.dist-info/top_level.txt,sha256=at6BnVzULDB109KZx9Cl9ClCHU4c0ykfV38WX-QR71U,37
7
+ contact_person_profile_csv_imp_local-0.0.50.dist-info/RECORD,,