Diff for /versionedFile/versionedFile.py between versions 1.28 and 1.29

version 1.28, 2005/03/03 13:00:39 version 1.29, 2005/03/03 13:09:30
Line 411  class versionedFile(Folder): Line 411  class versionedFile(Folder):
         """unlock"""          """unlock"""
         self.lockedBy=''          self.lockedBy=''
                                 
       security.declareProtected('AUTHENTICATED_USER','unlock')   
       def unlock(self,RESPONSE):
           """unlock"""
           if str(self.lockedBy) in [str(self.REQUEST['AUTHENTICATED_USER'])]:
               self.lockedBy=''
               RESPONSE.redirect(self.REQUEST['URL2'])
           else:
               return "Sorry, not locked by you! (%s,%s)"%(self.lockedBy,self.REQUEST['AUTHENTICATED_USER'])
           
   
           
     security.declareProtected('AUTHENTICATED_USER','addVersionedFileObjectForm')      security.declareProtected('AUTHENTICATED_USER','addVersionedFileObjectForm')
   

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


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