Diff for /ECHO_content/ECHO_Nav.py between versions 1.27 and 1.28

version 1.27, 2004/05/11 14:57:35 version 1.28, 2004/05/28 06:28:22
Line 284  class ECHO_navigation(Folder): Line 284  class ECHO_navigation(Folder):
   
     displayedMetaTypes=displayTypes      displayedMetaTypes=displayTypes
           
       def getR(self):
       """re"""
       return self.REQUEST
   
     def __init__(self,id,title,pathToHierarchy):      def __init__(self,id,title,pathToHierarchy):
         """init"""          """init"""
         self.id=id          self.id=id
Line 361  class ECHO_navigation(Folder): Line 365  class ECHO_navigation(Folder):
                 tempObj=self.pathToHierarchy[0:]                  tempObj=self.pathToHierarchy[0:]
                 tempObj=re.sub("/",".",tempObj)                  tempObj=re.sub("/",".",tempObj)
                 tempObj="self.aq_parent"+tempObj                  tempObj="self.aq_parent"+tempObj
           #print tempObj
                 objtemp=eval(tempObj)                  objtemp=eval(tempObj)
   
                 obj=objtemp                  obj=objtemp
Line 527  class ECHO_navigation(Folder): Line 531  class ECHO_navigation(Folder):
   
         splitted=ult_temp.split("/")          splitted=ult_temp.split("/")
                   
       print "AU",self.absolute_url(),splitted
       #start=[splitted[2]] #orig
       start=[splitted[1]]
   
         start=[splitted[2]]          print start
         #print start  
                 
         keys=self.barFromHash(hash,start=start)          keys=self.barFromHash(hash,start=start)
                   
Line 553  class ECHO_navigation(Folder): Line 559  class ECHO_navigation(Folder):
 ##         else:  ##         else:
 ##             start=[splitted[len(splitted)-1]]  ##             start=[splitted[len(splitted)-1]]
   
         start=splitted[2:order+1]          #start=splitted[2:order+1] #orig
       start=splitted[1:order] 
         #print start          #print start
                 
         keys=self.barFromHash(hash,start=start)          keys=self.barFromHash(hash,start=start)
Line 611  def createPath(url1,url2): Line 618  def createPath(url1,url2):
         if temp2[0]==test:          if temp2[0]==test:
             del temp2[0]              del temp2[0]
   
       #print "CP:"+url1+"::"+url2+"::"+url1+"/"+string.join(temp2,"/")
     return url1+"/"+string.join(temp2,"/")      return url1+"/"+string.join(temp2,"/")
   
 def sortWeight(x,y):  def sortWeight(x,y):

Removed from v.1.27  
changed lines
  Added in v.1.28


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