示例#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
示例#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
示例#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
示例#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
示例#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
示例#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
示例#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
示例#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
示例#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
示例#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
示例#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
示例#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