contact-person-profile-csv-imp-local 0.0.30__tar.gz → 0.0.31__tar.gz
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.
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/PKG-INFO +1 -1
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/contact_person_profile_csv_imp_local/src/CSVToContactPersonProfile.py +15 -2
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/contact_person_profile_csv_imp_local.egg-info/PKG-INFO +1 -1
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/setup.py +1 -1
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/README.md +0 -0
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/contact_person_profile_csv_imp_local/src/__init__.py +0 -0
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/contact_person_profile_csv_imp_local/src/contact_person_profile_csv_imp_local_constants.py +0 -0
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/contact_person_profile_csv_imp_local.egg-info/SOURCES.txt +0 -0
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/contact_person_profile_csv_imp_local.egg-info/dependency_links.txt +0 -0
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/contact_person_profile_csv_imp_local.egg-info/requires.txt +0 -0
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/contact_person_profile_csv_imp_local.egg-info/top_level.txt +0 -0
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/pyproject.toml +0 -0
- {contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/setup.cfg +0 -0
{contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: contact-person-profile-csv-imp-local
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.31
|
|
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
|
|
@@ -128,6 +128,7 @@ class CSVToContactPersonProfile(GenericCRUD, metaclass=MetaLogger,
|
|
|
128
128
|
self.domain_local = DomainLocal(is_test_data=is_test_data)
|
|
129
129
|
self.importers_local = ImportersLocal()
|
|
130
130
|
self.data_sources = DataSources()
|
|
131
|
+
self.groups_list = None
|
|
131
132
|
|
|
132
133
|
# # TODO Does this function should be here on in https://github.com/circles-zone/variable-local-python-package/tree/dev/variable_local_python_package/variable_local/src "field/field.py"?
|
|
133
134
|
# def __get_field_name(self, field_id: int, data_source_type_id: int) -> str:
|
|
@@ -163,7 +164,8 @@ class CSVToContactPersonProfile(GenericCRUD, metaclass=MetaLogger,
|
|
|
163
164
|
def insert_update_contact_from_csv(
|
|
164
165
|
self, *, data_source_type_id: int, file_name: str = None, user_external_username: str, system_id: int = None,
|
|
165
166
|
# TODO Add support to criteria_set_id
|
|
166
|
-
directory_name: str = None, csv_path: str = None, start_index: int = 0, end_index: int = None
|
|
167
|
+
directory_name: str = None, csv_path: str = None, start_index: int = 0, end_index: int = None,
|
|
168
|
+
groups_str: str = None, profile_id: int = None) -> dict:
|
|
167
169
|
"""
|
|
168
170
|
Insert contacts from CSV file to the database
|
|
169
171
|
:param data_source_type_id: The data source ID
|
|
@@ -175,10 +177,21 @@ class CSVToContactPersonProfile(GenericCRUD, metaclass=MetaLogger,
|
|
|
175
177
|
:param end_index: The end index
|
|
176
178
|
:return:
|
|
177
179
|
"""
|
|
180
|
+
'''
|
|
181
|
+
profile_id_by_email_address = ProfilesLocal().select_one_value_by_column_and_value(
|
|
182
|
+
schema_name="profile", view_table_name="profile_view",
|
|
183
|
+
select_clause_value="profile_id", column_name="profile.main_email_address",
|
|
184
|
+
column_value=user_external_username)
|
|
185
|
+
'''
|
|
186
|
+
profile_id = profile_id or self.user_context.get_effective_profile_id()
|
|
187
|
+
self.groups_list = [group.strip() for group in groups_str.split(",")] if groups_str else []
|
|
188
|
+
'''
|
|
178
189
|
profile_id = ProfilesLocal().select_one_value_by_column_and_value(
|
|
179
190
|
schema_name="profile", view_table_name="profile_view",
|
|
180
|
-
select_clause_value="profile_id", column_name="
|
|
191
|
+
select_clause_value="profile_id", column_name="profile.main_email_address",
|
|
181
192
|
column_value=user_external_username)
|
|
193
|
+
'''
|
|
194
|
+
self.logger.info(f"profile_id: {profile_id}")
|
|
182
195
|
# TODO Please explain
|
|
183
196
|
# if csv_path is provided then we will use the full path
|
|
184
197
|
# if csv_path is not provided then we will use the directory_name and file_name to create the full path
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: contact-person-profile-csv-imp-local
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.31
|
|
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
|
{contact_person_profile_csv_imp_local-0.0.30 → contact_person_profile_csv_imp_local-0.0.31}/setup.py
RENAMED
|
@@ -5,7 +5,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name=PACKAGE_NAME,
|
|
8
|
-
version='0.0.
|
|
8
|
+
version='0.0.31', # https://pypi.org/project/contact-person-profile-csv-imp-local/
|
|
9
9
|
author="Circles",
|
|
10
10
|
author_email="info@circles.ai",
|
|
11
11
|
description="PyPI Package for Circles CSVToContactPersonProfile-local Local/Remote Python",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|