Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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