From 454b19ed0f407098fcc8b39390f8b10da364cbcd Mon Sep 17 00:00:00 2001 From: Yann Lanthony Date: Mon, 30 Oct 2017 11:40:40 +0100 Subject: [PATCH] [graph] dummy override of List/GroupAttribute uid methods TODO: implement the real uid mechanism based on child attributes --- meshroom/core/graph.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meshroom/core/graph.py b/meshroom/core/graph.py index 49efc4f1..08a08bb6 100644 --- a/meshroom/core/graph.py +++ b/meshroom/core/graph.py @@ -218,6 +218,9 @@ class ListAttribute(Attribute): def remove(self, index): self._value.removeAt(index) + def uid(self): + return 0 # TODO + def getExportValue(self): return [attr.getExportValue() for attr in self._value] @@ -252,6 +255,9 @@ class GroupAttribute(Attribute): for key, value in exportedValue.items(): self._value.get(key).value = value + def uid(self): + return 0 # TODO + def getExportValue(self): return {key: attr.getExportValue() for key, attr in self._value.objects.items()}