def execute(self, REQUEST=None, RESPONSE=None): """ """ if not self.isActive(): return if getattr(REQUEST, 'reset_date', False): self.setResetDate(True) histories = self.getDeploymentHistory() history = histories.makeHistory() Log.attachLogMonitor(history) try: try: pipeline = self.getPipeline() pipeline.process( self ) except: if not DefaultConfiguration.DEPLOYMENT_DEBUG: raise import sys, pdb, traceback ec, e, tb = sys.exc_info() print ec, e print traceback.print_tb( tb ) #pdb.post_mortem( tb ) raise finally: Log.detachLogMonitor(history) #history.recordStatistics(display) histories.attachHistory(history) self.getDeploymentPolicy().setResetDate(False) #Uncomment if/when you want to have users with Manager role receive email #when a deployment completes. Helpful, for large sites with long-running #deployments. #self.exportNotify(REQUEST) if RESPONSE: return RESPONSE.redirect('manage_workspace') return True
def execute(self, REQUEST=None, RESPONSE=None): """ """ if not self.isActive(): return if getattr(REQUEST, 'reset_date', False): self.setResetDate(True) histories = self.getDeploymentHistory() history = histories.makeHistory() Log.attachLogMonitor(history) try: try: pipeline = self.getPipeline() pipeline.process( self ) except: if not DefaultConfiguration.DEPLOYMENT_DEBUG: raise import sys, pdb, traceback ec, e, tb = sys.exc_info() print ec, e print traceback.print_tb( tb ) #pdb.post_mortem( tb ) raise finally: Log.detachLogMonitor(history) #history.recordStatistics(display) histories.attachHistory(history) self.getDeploymentPolicy().setResetDate(False) if RESPONSE: return RESPONSE.redirect('manage_workspace') return True