mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
attribute definitions have id
This commit is contained in:
parent
4385663bb8
commit
8e28004450
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue