[core] implement uid computation for ListAttributes and GroupAttributes

This commit is contained in:
Fabien Castan 2017-10-31 10:46:32 +01:00
parent f1fdd34b6c
commit 46f6865a25
2 changed files with 23 additions and 7 deletions

View file

@ -61,6 +61,9 @@ class CoreListModel:
def __iter__(self):
return self._objects.__iter__()
def __len__(self):
return len(self._objects)
def at(self, idx):
return self._objects[idx]
@ -79,6 +82,9 @@ class CoreListModel:
def remove(self, obj):
self._objects.remove(obj)
def clear(self):
self._objects = []
class CoreSignal:
""" Simple signal/callback implementation """