diff getan/nodes.py @ 469:050ffdec60d9

Fix the orientation problem * Highlights the project what is open.
author Magnus Schieder <mschieder@intevation.de>
date Tue, 08 May 2018 13:29:45 +0200
parents ceb5909b106e
children 950bfe89ec3d
line wrap: on
line diff
--- a/getan/nodes.py	Fri May 04 15:36:50 2018 +0200
+++ b/getan/nodes.py	Tue May 08 13:29:45 2018 +0200
@@ -47,6 +47,12 @@
                 self._w.set_focus_map({None: 'entry'})
                 self._w.set_attr_map({None: 'entry'})
 
+        # Only projects can be open.
+        if self.item.open and not self.has_focus:
+                self._w.set_attr_map({None: 'open_project'})
+        else:
+            self.item.open = False
+
     def select(self):
         self.selected = not self.selected
         logger.debug("Node: update selection of item '%s' selected %s"
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)