Diff for /ZSQLExtend/ZSQLExtend.py between versions 1.7 and 1.9

version 1.7, 2004/01/22 09:54:54 version 1.9, 2004/02/05 10:29:56
Line 18  class ZSQLExtendFolder(Persistent, Impli Line 18  class ZSQLExtendFolder(Persistent, Impli
     """Folder"""      """Folder"""
     meta_type="ZSQLExtendFolder"      meta_type="ZSQLExtendFolder"
           
       def actualPath(self,url=None):
       """path"""
       if not url:
           return "http://"+self.REQUEST['HTTP_X_FORWARDED_SERVER']+self.REQUEST['PATH_TRANSLATED']
           else:
           temp=self.REQUEST[url].split("/")
           temp[2]=self.REQUEST['HTTP_X_FORWARDED_SERVER']
           return string.join(temp,"/")
   
       def getRequest(self):
       """request"""
       return self.REQUEST
   
     def lowerEnd(self,path):      def lowerEnd(self,path):
         """oinly for demo"""          """oinly for demo"""
Line 443  class ZSQLExtendFolder(Persistent, Impli Line 455  class ZSQLExtendFolder(Persistent, Impli
             newquery.append(query)              newquery.append(query)
                                   
         newquerystring=string.join(newquery,"&")          newquerystring=string.join(newquery,"&")
         return "<a href='%s'>%s</a>"%(self.REQUEST['URL0']+"?"+newquerystring,html)      
           return "<a href='%s'>%s</a>"%(self.actualPath()+"?"+newquerystring,html)
                           
                   
     def prevLink(self,html,storename="foundCount"):      def prevLink(self,html,storename="foundCount"):
Line 494  class ZSQLExtendFolder(Persistent, Impli Line 507  class ZSQLExtendFolder(Persistent, Impli
             newquery.append(query)              newquery.append(query)
                           
         newquerystring=string.join(newquery,"&")          newquerystring=string.join(newquery,"&")
         return "<a href='%s'>%s</a>"%(self.REQUEST['URL0']+"?"+newquerystring,html)  
           return "<a href='%s'>%s</a>"%(self.actualPath()+"?"+newquerystring,html)
   
   
           
     def prevLink_old(self,html):      def prevLink_old(self,html):
         """prev link"""          """prev link"""
Line 521  class ZSQLExtendFolder(Persistent, Impli Line 537  class ZSQLExtendFolder(Persistent, Impli
         else:          else:
             queries.append("-offset=%i"%offsetnew)              queries.append("-offset=%i"%offsetnew)
             newquerystring=string.join(queries,"&")              newquerystring=string.join(queries,"&")
         return "<a href='%s'>%s</a>"%(self.REQUEST['URL0']+"?"+newquerystring,html)          return "<a href='%s'>%s</a>"%(self.actualPath()+"?"+newquerystring,html)
                   
     def nextLink_old(self,html):      def nextLink_old(self,html):
         """prev link"""          """prev link"""
Line 551  class ZSQLExtendFolder(Persistent, Impli Line 567  class ZSQLExtendFolder(Persistent, Impli
             queries.append("-offset=%i"%offsetnew)              queries.append("-offset=%i"%offsetnew)
             newquerystring=string.join(queries,"&")              newquerystring=string.join(queries,"&")
                   
         return "<a href='%s'>%s</a>"%(self.REQUEST['URL0']+"?"+newquerystring,html)          return "<a href='%s'>%s</a>"%(self.actualPath()+"?"+newquerystring,html)
                   
           
 manage_addZSQLExtendFolderForm=DTMLFile('ZSQLExtendFolderAdd', globals())  manage_addZSQLExtendFolderForm=DTMLFile('ZSQLExtendFolderAdd', globals())

Removed from v.1.7  
changed lines
  Added in v.1.9


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