Added 'order' attribute to term's INode adapter
authorThierry Florac <thierry.florac@onf.fr>
Mon, 03 Dec 2018 10:44:14 +0100
changeset 97 20b1cbc4081d
parent 96 0d3ee20f86c2
child 98 7fa6f240e4ce
Added 'order' attribute to term's INode adapter
src/pyams_thesaurus/term.py
--- a/src/pyams_thesaurus/term.py	Mon Dec 03 10:27:46 2018 +0100
+++ b/src/pyams_thesaurus/term.py	Mon Dec 03 10:44:14 2018 +0100
@@ -398,6 +398,10 @@
     def css_class(self):
         return self.context.status
 
+    @property
+    def order(self):
+        return self.context.order or 999
+
     def get_level(self):
         return self.context.level