Exemplo n.º 1
0
    def post(self, request, *args, **kwargs):

        self.load(request, *args, **kwargs)

        if "action" in request.POST:
            if HasWorkingProject.isChooseProject(self, request):
                self.loadModels(request)

            elif request.POST['action'] == "delete_model":
                self.deleteModel(request)
                self.load(request, *args, **kwargs)

            elif request.POST['action'] == "load_model":
                self.loadModel(request)
                self.load(request, *args, **kwargs)

            elif request.POST['action'] == "duplicate_model":
                self.duplicateModel(request)
                self.load(request, *args, **kwargs)

            elif request.POST['action'] == "new_model":
                self.newModel(request)
                self.load(request, *args, **kwargs)

            elif request.POST['action'] == "load_biomodels":
                self.loadBiomodels(request)
                self.load(request, *args, **kwargs)

        return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 2
0
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:

			if HasWorkingProject.isChooseProject(self, request):
				return redirect('experimental_data')

			elif request.POST['data_type'] == 'treatment':

				if request.POST['action'] == "delete":
					self.deleteTreatment(request)

				elif request.POST['action'] == "save":
					self.saveTreatment(request)

				self.loadTreatments()

			elif request.POST['data_type'] == "observation":

				if request.POST['action'] == "delete":
					self.deleteObservation(request)

				elif request.POST['action'] == "save":
					self.saveObservation(request)

				self.loadObservations()

		return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 3
0
    def post(self, request, *args, **kwargs):

        HasWorkingProject.load(self, request, *args, **kwargs)
        self.loadExperiments(request)

        if "action" in request.POST:

            if HasWorkingProject.isChooseProject(self, request):
                self.loadExperiments(request)

            elif request.POST['action'] == "create":
                self.newExperiment(request)

            elif request.POST['action'] == "delete":
                self.deleteExperiment(request)

            elif request.POST['action'] == "edit":
                self.editExperiment(request)

            elif request.POST['action'] == "save":
                self.saveExperiment(request)

            elif request.POST['action'] == "duplicate":
                self.duplicateExperiment(request)

        return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 4
0
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingProject.isChooseProject(self, request):
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "new_folder":
				self.newFolder(request)

			elif request.POST['action'] == "copy_folder":
				self.copyFolder(request)

			elif request.POST['action'] == "delete_folder":
				self.deleteFolder(request)

			elif request.POST['action'] == "send_folder":
				self.sendFolder(request)

			elif request.POST['action'] == "load_folder":
				self.loadFolder(request)

			elif request.POST['action'] == "save_project":
				self.saveProject(request)

		return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 5
0
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingProject.isChooseProject(self, request):
				self.loadModels(request)

			elif request.POST['action'] == "delete_model":
				self.deleteModel(request)
				self.load(request, *args, **kwargs)


			elif request.POST['action'] == "load_model":
				self.loadModel(request)
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "duplicate_model":
				self.duplicateModel(request)
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "new_model":
				self.newModel(request)
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "load_biomodels":
				self.loadBiomodels(request)
				self.load(request, *args, **kwargs)


		return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 6
0
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingProject.isChooseProject(self, request):
				return redirect('list_of_simulations')

		return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 7
0
    def post(self, request, *args, **kwargs):

        self.load(request, *args, **kwargs)

        if "action" in request.POST:
            if HasWorkingProject.isChooseProject(self, request):
                return redirect('list_of_simulations')

        return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 8
0
    def post(self, request, *args, **kwargs):

        self.load(request, *args, **kwargs)

        if "action" in request.POST:
            if HasWorkingProject.isChooseProject(self, request):
                self.load(request, *args, **kwargs)

            elif request.POST['action'] == "delete_simulation":
                self.deleteSimulation(request)

            elif request.POST['action'] == "load_simulation":
                self.loadSimulation(request)

        return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 9
0
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingProject.isChooseProject(self, request):
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "delete_simulation":
				self.deleteSimulation(request)

			elif request.POST['action'] == "load_simulation":
				self.loadSimulation(request)

		return TemplateView.get(self, request, *args, **kwargs)
		def post(self, request, *args, **kwargs):

			self.load(request, *args, **kwargs)

			if "action" in request.POST:
				if HasWorkingProject.isChooseProject(self, request):
					return redirect('list_of_optimizations')

				if request.POST['action'] == "save_model":
					self.saveFittedModel(request)

				elif request.POST['action'] == "stop_optim":
					self.stopOptimization()

				elif request.POST['action'] == "restart_optim":
					self.restartOptimization()

			return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 11
0
    def isChooseModel(self, request):

        if HasWorkingProject.isChooseProject(self, request):

            self.list_of_models = None
            self.__clearModelVariables()
            self.__clearPickledModel(request)
            return True

        elif request.POST['action'] == "choose_model":
            self.__setModel(request)
            return True

        elif request.POST['action'] == "choose_submodel":
            self.__setSubmodel(request)
            return True

        else:
            return False
Exemplo n.º 12
0
	def isChooseModel(self, request):

		if HasWorkingProject.isChooseProject(self, request):

			self.list_of_models = None
			self.__clearModelVariables()
			self.__clearPickledModel(request)
			return True

		elif request.POST['action'] == "choose_model":
			self.__setModel(request)
			return True

		elif request.POST['action'] == "choose_submodel":
			self.__setSubmodel(request)
			return True

		else:
			return False
Exemplo n.º 13
0
    def post(self, request, *args, **kwargs):

        HasWorkingProject.load(self, request, *args, **kwargs)

        self.load(request, *args, **kwargs)

        if "action" in request.POST:

            if HasWorkingProject.isChooseProject(self, request):
                return redirect('experimental_data')

            elif request.POST['action'] == "delete":
                self.deleteCondition(request)

            elif request.POST['action'] == "save":
                self.saveCondition(request)

            elif request.POST['action'] == "duplicate":
                self.duplicateCondition(request)

        return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 14
0
	def post(self, request, *args, **kwargs):

		HasWorkingProject.load(self, request, *args, **kwargs)
		self.loadExperiments(request)

		if "action" in request.POST:

			if HasWorkingProject.isChooseProject(self, request):
				self.loadExperiments(request)

			elif request.POST['action'] == "delete":
				self.deleteExperiment(request)

			elif request.POST['action'] == "save":
				self.saveExperiment(request)

			elif request.POST['action'] == "duplicate":
				self.duplicateExperiment(request)

			elif request.POST['action'] == "import":
				self.importExperiment(request)

		return TemplateView.get(self, request, *args, **kwargs)
Exemplo n.º 15
0
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingProject.isChooseProject(self, request):
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "copy_folder":
				self.copyFolder(request)

			elif request.POST['action'] == "delete_folder":
				self.deleteFolder(request)

			elif request.POST['action'] == "send_folder":
				self.sendFolder(request)

			elif request.POST['action'] == "load_folder":
				self.loadFolder(request)

			elif request.POST['action'] == "save_project":
				self.saveProject(request)

		return TemplateView.get(self, request, *args, **kwargs)