Diff for /versionedFile/versionedFile.py between versions 1.59 and 1.60

version 1.59, 2006/05/22 10:25:16 version 1.60, 2006/05/22 10:54:31
Line 720  class versionedFile(CatalogAware,Folder) Line 720  class versionedFile(CatalogAware,Folder)
   
     default_catalog='fileCatalog'      default_catalog='fileCatalog'
           
       security= ClassSecurityInfo()   
       
       security.declarePublic('getTitle')
     def getTitle(self):      def getTitle(self):
         """get title"""          """get title"""
         return self.title          return self.title
Line 784  class versionedFile(CatalogAware,Folder) Line 787  class versionedFile(CatalogAware,Folder)
         else:          else:
             return images              return images
                                                             
               security.declarePublic('getComment')
     def getComment(self):      def getComment(self):
         """get the comment of this file"""          """get the comment of this file"""
         if not hasattr(self,'comment') or (not self.comment) or (self.comment.lstrip()==""):          if not hasattr(self,'comment') or (not self.comment) or (self.comment.lstrip()==""):
Line 813  class versionedFile(CatalogAware,Folder) Line 816  class versionedFile(CatalogAware,Folder)
                 self.comment_date=time.strftime("%Y-%m-%d %H:%M:%S",time.localtime())                  self.comment_date=time.strftime("%Y-%m-%d %H:%M:%S",time.localtime())
   
         return REQUEST.RESPONSE.redirect(self.aq_parent.absolute_url())          return REQUEST.RESPONSE.redirect(self.aq_parent.absolute_url())
           security.declarePublic('getLastVersion')
     def getLastVersion(self):      def getLastVersion(self):
         """Last Version"""          """Last Version"""
         tmp=0          tmp=0
Line 850  class versionedFile(CatalogAware,Folder) Line 853  class versionedFile(CatalogAware,Folder)
                   
                   
         return max([plus,minus]),l          return max([plus,minus]),l
           security.declarePublic('index_html')
     def index_html(self):      def index_html(self):
         """main view"""          """main view"""
         lastVersion=self.getLastVersion()          lastVersion=self.getLastVersion()
         #return "File:"+self.title+"  Version:%i"%lastVersion.versionNumber," modified:",lastVersion.bobobase_modification_time()," size:",lastVersion.getSize(),"modified by:",lastVersion.lastEditor()          #return "File:"+self.title+"  Version:%i"%lastVersion.versionNumber," modified:",lastVersion.bobobase_modification_time()," size:",lastVersion.getSize(),"modified by:",lastVersion.lastEditor()
         return "File: %s Version:%i modified:%s size:%s modified by:%s"%(self.title,lastVersion.versionNumber,lastVersion.getTime(),lastVersion.getSize(),lastVersion.lastEditor())          return "File: %s Version:%i modified:%s size:%s modified by:%s"%(self.title,lastVersion.versionNumber,lastVersion.getTime(),lastVersion.getSize(),lastVersion.lastEditor())
     security= ClassSecurityInfo()     
   
             
     security.declarePublic('getVersion')                                                    security.declarePublic('getVersion')                                              

Removed from v.1.59  
changed lines
  Added in v.1.60


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