def html_view(self):
		view = View()
		view.title = self.project.name + " / " + self.path.split("/")[-2] + " ni. toolbox session"
		#view.add("#0/Project",self.project)
		for job in self.job_status.keys():
			if "pending" in self.job_status[job]:
				view.add("#1/Job Status/"+str(job)+"/table/pending", str(self.job_status[job]["pending"]))
			if "starting..." in self.job_status[job]:
				view.add("#1/Job Status/"+str(job)+"/table/starting", str(self.job_status[job]["starting..."]))
			if "done." in self.job_status[job]:
				view.add("#1/Job Status/"+str(job)+"/table/done", str(self.job_status[job]["done."]))
			if "running..." in self.job_status[job]:
				view.add("#1/Job Status/"+str(job)+"/table/running", str(self.job_status[job]["running..."]))
			if "failed." in self.job_status[job]:
				view.add("#1/Job Status/"+str(job)+"/table/failed", str(self.job_status[job]["failed."]))
		jobs = copy(self.jobs)
		for j in jobs.keys():
			view.add("#2/Jobs/tabs/"+str(jobs[j].job_name)+"/tabs/"+str(j),jobs[j])
			if jobs[j].status == "starting...":
				view.add("#2/Jobs/tabs/"+str(jobs[j].job_name)+"/tabs/"+str(j)+"/.style","background-color: lightyellow; color: yellow;")
			if jobs[j].status == "running...":
				view.add("#2/Jobs/tabs/"+str(jobs[j].job_name)+"/tabs/"+str(j)+"/.style","background-color: lightyellow; color: black;")
			if jobs[j].status == "failed.":
				view.add("#2/Jobs/tabs/"+str(jobs[j].job_name)+"/tabs/"+str(j)+"/.style","color: darkred;")
			if jobs[j].status == "done.":
				view.add("#2/Jobs/tabs/"+str(jobs[j].job_name)+"/tabs/"+str(j)+"/.style","color: darkgreen;")
		return view
	def html_view(self):
		view = View()
		view.title = self.project.name + " / " + self.session.path.split("/")[-2] + "/" + str(self.job_name) + " " + str(self.job_number) + " ni. toolbox job"
		for k in self.__dict__.keys():
			if k != "session" and k != "project":
				v = self.__dict__[k]
				view.add("/Info/table/"+str(k),v)
		if os.path.exists(self.path+"_results.html"):
			view.add("/Results","<a href=\""+"job_"+str(self.job_number)+"_"+"_results.html"+"\">results</a>")
		if os.path.exists(self.path+"results.html"):
			view.add("/Results","<a href=\""+"job_"+str(self.job_number)+"_"+"results.html"+"\">results</a>")
		if os.path.exists(self.path+"_log.txt"):
			view.add("/Log","<a href=\""+"job_"+str(self.job_number)+"_"+"_log.txt"+"\">log</a>")
		if os.path.exists(self.path+"_error.txt"):
			view.add("/Error","<a href=\""+"job_"+str(self.job_number)+"_"+"_error.txt"+"\">Error log</a>")
		if os.path.exists(self.path+"error.txt"):
			view.add("/Error","<a href=\""+"job_"+str(self.job_number)+"_error.txt"+"\">Error log</a>")
		return view