Reified "groups" property
authorThierry Florac <thierry.florac@onf.fr>
Fri, 26 Jan 2018 17:27:31 +0100
changeset 80 e8012944d550
parent 79 028af0bbc5f4
child 81 63910cffdf2b
Reified "groups" property
src/pyams_form/group.py
--- a/src/pyams_form/group.py	Fri Jan 26 17:27:06 2018 +0100
+++ b/src/pyams_form/group.py	Fri Jan 26 17:27:31 2018 +0100
@@ -153,7 +153,7 @@
     def add_group(self, group):
         self._groups.append(group)
 
-    @property
+    @reify
     def groups(self):
         result = self._groups[:]
         others = []