Example #1
0
 def undo(self):
     if self.success:
         try:
             filesystem.rmtree(self.vcs_path)
         except Exception, e:
             conf.log.exception('Failed to remove version control directory: {0}'.format(self.vcs_path))
             return False
Example #2
0
 def undo(self):
     try:
         filesystem.rmtree(self.env_path)
     except Exception:
         conf.log.exception('Failed to delete trac environment: {0}'.format(self.env_path))
         return False
     return True
Example #3
0
 def undo(self):
     try:
         filesystem.rmtree(self.env_path)
     except Exception:
         conf.log.exception('Failed to delete trac environment: {0}'.format(self.env_path))
         return False
     return True
Example #4
0
 def undo(self):
     if self.success:
         try:
             filesystem.rmtree(self.vcs_path)
         except Exception, e:
             conf.log.exception('Failed to remove version control directory: {0}'.format(self.vcs_path))
             return False
Example #5
0
 def undo(self):
     if os.path.exists(self.downloads_sys_path):
         try:
             filesystem.rmtree(self.downloads_sys_path)
         except Exception:
             conf.log.exception('Failed to remove project downloads')
             return False
     return True
Example #6
0
 def undo(self):
     if os.path.exists(self.dav_sys_path):
         try:
             filesystem.rmtree(self.dav_sys_path)
         except Exception:
             conf.log.exception('Failed to remove WebDAV folder')
             return False
     return True
Example #7
0
 def undo(self):
     if self.success:
         try:
             filesystem.rmtree(self.vcs_path)
         except:
             conf.log.exception('Failed to delete repository: {0}'.format(self.vcs_path))
             return False
     return True
Example #8
0
 def undo(self):
     if os.path.exists(self.downloads_sys_path):
         try:
             filesystem.rmtree(self.downloads_sys_path)
         except Exception:
             conf.log.exception('Failed to remove project downloads')
             return False
     return True
Example #9
0
 def undo(self):
     if os.path.exists(self.dav_sys_path):
         try:
             filesystem.rmtree(self.dav_sys_path)
         except Exception:
             conf.log.exception('Failed to remove WebDAV folder')
             return False
     return True
Example #10
0
 def undo(self):
     if self.success:
         try:
             filesystem.rmtree(self.vcs_path)
         except:
             conf.log.exception('Failed to delete repository: {0}'.format(self.vcs_path))
             return False
     return True
Example #11
0
    def undo(self):
        try:
            self.download_config.delete()
        except Exception:
            conf.log.exception("Exception. CreateFilesDownloads delete failed.")
            return False
        if os.path.exists(self.downloads_dir):
            try:
                filesystem.rmtree(self.downloads_dir)
            except Exception:
                conf.log.exception('Failed to remove project files downloads')
                return False

        return True
Example #12
0
    def undo(self):
        try:
            self.download_config.delete()
        except Exception:
            conf.log.exception("Exception. CreateFilesDownloads delete failed.")
            return False
        if os.path.exists(self.downloads_dir):
            try:
                filesystem.rmtree(self.downloads_dir)
            except Exception:
                conf.log.exception('Failed to remove project files downloads')
                return False

        return True