Diff for /ECHO_content/ECHO_Nav.py between versions 1.12 and 1.13

version 1.12, 2004/04/07 17:07:10 version 1.13, 2004/04/15 10:10:56
Line 377  class ECHO_navigation(Folder): Line 377  class ECHO_navigation(Folder):
                     """nothing"""                      """nothing"""
                     return []                      return []
             #print "TEMP",temp,self.tempSorted(temp, field=sortField)              #print "TEMP",temp,self.tempSorted(temp, field=sortField)
         print "HELL",sortField  
         for x in self.tempSorted(temp, field=sortField):          for x in self.tempSorted(temp, field=sortField):
             if not temp[x][1].title == "":              if not temp[x][1].title == "":
                 if temp[x][1].meta_type=="ECHO_sqlElement":                  if temp[x][1].meta_type=="ECHO_sqlElement":
Line 388  class ECHO_navigation(Folder): Line 388  class ECHO_navigation(Folder):
                     if hasattr(temp[x][1],'label'):                      if hasattr(temp[x][1],'label'):
                         if not temp[x][1].label=='':                          if not temp[x][1].label=='':
                             label=temp[x][1].label                              label=temp[x][1].label
                             print "HAS LABEL",label                              
                         else:                          else:
                             label=temp[x][1].title                              label=temp[x][1].title
                     else:                      else:
Line 408  class ECHO_navigation(Folder): Line 408  class ECHO_navigation(Folder):
   
     def tempSorted(self,hash,field="weight"):      def tempSorted(self,hash,field="weight"):
         ls=[]          ls=[]
         print "SORT",field  
         for x in hash.keys():          for x in hash.keys():
             #print hash[x][1]              #print hash[x][1]
             if hasattr(hash[x][1],field):              if hasattr(hash[x][1],field):
Line 483  class ECHO_navigation(Folder): Line 483  class ECHO_navigation(Folder):
     def mainNavBar(self):      def mainNavBar(self):
         """print main navigation bar"""          """print main navigation bar"""
         keys=""          keys=""
         print "NAVBAR",self.getId()  
         try:          try:
             keys=self.buttonsFromHash(self.createNavHash(0))              keys=self.buttonsFromHash(self.createNavHash(0))
         except:          except:

Removed from v.1.12  
changed lines
  Added in v.1.13


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>