You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2020/12/31 02:20:57 UTC

[atlas] branch branch-2.0 updated: ATLAS-4090: fixed circular import issue in Python client

This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 7be65da  ATLAS-4090: fixed circular import issue in Python client
7be65da is described below

commit 7be65daf324e452db8bb5f5722edb05a6ab420c8
Author: Mariusz Górski <go...@gmail.com>
AuthorDate: Wed Dec 30 18:16:52 2020 -0800

    ATLAS-4090: fixed circular import issue in Python client
    
    Signed-off-by: Madhan Neethiraj <ma...@apache.org>
    (cherry picked from commit 0f8b3353f9f972412bbc8b5ab3e53899d6a40f72)
---
 intg/src/main/python/apache_atlas/model/instance.py | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/intg/src/main/python/apache_atlas/model/instance.py b/intg/src/main/python/apache_atlas/model/instance.py
index 707d5bb..8cfb254 100644
--- a/intg/src/main/python/apache_atlas/model/instance.py
+++ b/intg/src/main/python/apache_atlas/model/instance.py
@@ -15,17 +15,11 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-from apache_atlas.model.enums import EntityStatus
-from apache_atlas.model.glossary import AtlasTermAssignmentHeader
-from apache_atlas.model.misc import AtlasBase
-from apache_atlas.model.misc import next_id
-from apache_atlas.model.misc import Plist
-from apache_atlas.model.misc import TimeBoundary
-from apache_atlas.utils import non_null
-from apache_atlas.utils import type_coerce
-from apache_atlas.utils import type_coerce_dict
-from apache_atlas.utils import type_coerce_dict_list
-from apache_atlas.utils import type_coerce_list
+import apache_atlas
+
+from apache_atlas.model.enums import *
+from apache_atlas.model.misc import *
+from apache_atlas.utils import *
 
 
 class AtlasStruct(AtlasBase):
@@ -68,7 +62,7 @@ class AtlasEntity(AtlasStruct):
         super(AtlasEntity, self).type_coerce_attrs()
 
         self.classifications = type_coerce_list(self.classifications, AtlasClassification)
-        self.meanings = type_coerce_list(self.meanings, AtlasTermAssignmentHeader)
+        self.meanings = type_coerce_list(self.meanings, apache_atlas.model.glossary.AtlasTermAssignmentHeader)
 
     def get_relationship_attribute(self, name):
         return self.relationshipAttributes[
@@ -158,7 +152,7 @@ class AtlasEntityHeader(AtlasStruct):
         super(AtlasEntityHeader, self).type_coerce_attrs()
 
         self.classifications = type_coerce_list(self.classifications, AtlasClassification)
-        self.meanings = type_coerce_list(self.meanings, AtlasTermAssignmentHeader)
+        self.meanings = type_coerce_list(self.meanings, apache_atlas.model.glossary.AtlasTermAssignmentHeader)
 
 
 class AtlasClassification(AtlasStruct):