Diff for /versionedFile/versionedFile.py between versions 1.33 and 1.34

version 1.33, 2005/03/21 14:54:50 version 1.34, 2005/03/31 16:44:23
Line 101  class versionedFileFolder(Folder,ECHO_ba Line 101  class versionedFileFolder(Folder,ECHO_ba
   
                   
         def sortComment(x,y):          def sortComment(x,y):
   
           
               
        try:
           xc=getattr(x[1],'comment','ZZZZZZZZZZZZZ').lower()
        except:
           xc='ZZZZZZZZZZZZZ'.lower()
        try:
           yc=getattr(y[1],'comment','ZZZZZZZZZZZZZ').lower()
            except:
               yc='ZZZZZZZZZZZZZ'.lower()
   
   
            if (xc=='') or (xc=='ZZZZZZZZZZZZZ'.lower()):
                
      try:       try:
         x=getattr(x[1],'comment','ZZZZZZZZZZZZZ').lower()                   xc=x[1].getLastVersion().getVComment().lower()
      except:       except:
         x='zzzzzzzzzzzzzzzz'                   xc='ZZZZZZZZZZZZZ'.lower()
                    
            if (yc=='') or (yc=='ZZZZZZZZZZZZZ'.lower()):
      try:       try:
         y=getattr(y[1],'comment','ZZZZZZZZZZZZZ').lower()                   yc=y[1].getLastVersion().getVComment().lower()
          except:           except:
             y='zzzzzzzzzzzzzzzz'                   yc='ZZZZZZZZZZZZZ'.lower()
          return cmp(x,y)  
            
            return cmp(xc,yc)
   
         def sortAuthor(x,y):          def sortAuthor(x,y):
                           
Line 255  class versionedFileObject(File): Line 274  class versionedFileObject(File):
                           
     def manageVCommentForm(self):      def manageVCommentForm(self):
         """add a comment"""          """add a comment"""
   
           self.REQUEST.SESSION['refer']=self.REQUEST['HTTP_REFERER']
   
   
           
         pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','addVComment')).__of__(self)          pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','addVComment')).__of__(self)
         return pt()          return pt()
   
Line 269  class versionedFileObject(File): Line 293  class versionedFileObject(File):
   
                 self.vComment_date=time.strftime("%Y-%m-%d %H:%M:%S",time.localtime())                  self.vComment_date=time.strftime("%Y-%m-%d %H:%M:%S",time.localtime())
   
           if self.REQUEST.SESSION.has_key('refer'):
   
               return REQUEST.RESPONSE.redirect(self.REQUEST.SESSION['refer'])
         return REQUEST.RESPONSE.redirect(self.aq_parent.absolute_url()+"/history")          return REQUEST.RESPONSE.redirect(self.aq_parent.absolute_url()+"/history")
           
   

Removed from v.1.33  
changed lines
  Added in v.1.34


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