--- ECHO_content/ECHO_Nav.py 2005/06/08 07:07:26 1.56 +++ ECHO_content/ECHO_Nav.py 2005/08/04 17:42:07 1.57 @@ -714,8 +714,15 @@ class ECHO_navigation(Folder): return 1 else: return 0 + - + def getPathStyle(self, item, style=""): + """returns a string with the given style + 'sel' if the path is already selected.""" + + if self.isSelectedPath(item): + return style + 'sel' + else: + return style def buttonsFromHash(self,hash,start=None,orientation="horizontal"): @@ -797,9 +804,7 @@ class ECHO_navigation(Folder): return nr+1 def secondNavElements(self): - """Zweite Ordnung Navigationselemente - - """ + """Zweite Ordnung Navigationselemente""" hash=self.createNavHash(2,checkOnly="no") actual_url=self.REQUEST['URL']