attribute definitions have id

This commit is contained in:
iLLiCiTiT 2021-07-13 10:33:42 +02:00
parent 4385663bb8
commit 8e28004450

View file

@ -1,5 +1,6 @@
import re
import collections
import uuid
from abc import ABCMeta, abstractmethod
import six
@ -43,9 +44,14 @@ class AbtractAttrDef:
self.key = key
self.label = label
self.tooltip = tooltip
self._id = uuid.uuid4()
self.__init__class__ = AbtractAttrDef
@property
def id(self):
return self._id
def __eq__(self, other):
if not isinstance(other, self.__class__):
return False