本文整理汇总了Python中signetsim.views.HasWorkingModel.HasWorkingModel.isChooseModel方法的典型用法代码示例。如果您正苦于以下问题:Python HasWorkingModel.isChooseModel方法的具体用法?Python HasWorkingModel.isChooseModel怎么用?Python HasWorkingModel.isChooseModel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类signetsim.views.HasWorkingModel.HasWorkingModel
的用法示例。
在下文中一共展示了HasWorkingModel.isChooseModel方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: post
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
def post(self, request, *args, **kwargs):
self.load(request, *args, **kwargs)
if "action" in request.POST:
if HasWorkingModel.isChooseModel(self, request):
self.load(request, *args, **kwargs)
return TemplateView.get(self, request, *args, **kwargs)
示例2: post
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
def post(self, request, *args, **kwargs):
self.load(request, *args, **kwargs)
if "action" in request.POST:
if HasWorkingModel.isChooseModel(self, request):
self.load(request, *args, **kwargs)
# elif request.POST['action'] == "edit_model_name":
# self.saveName(request)
#
# elif request.POST['action'] == "edit_model_notes":
# self.saveNotes(request)
elif request.POST['action'] == "choose_time_unit":
self.saveTimeUnit(request)
elif request.POST['action'] == "reset_time_unit":
self.resetTimeUnit(request)
elif request.POST['action'] == "choose_substance_unit":
self.saveSubstanceUnit(request)
elif request.POST['action'] == "reset_substance_unit":
self.resetSubstanceUnit(request)
elif request.POST['action'] == "choose_extent_unit":
self.saveExtentUnit(request)
elif request.POST['action'] == "reset_extent_unit":
self.resetExtentUnit(request)
elif request.POST['action'] == "choose_scaling_factor":
self.saveScalingFactor(request)
elif request.POST['action'] == "reset_scaling_factor":
self.resetScalingFactor(request)
elif request.POST['action'] == "choose_sbml_level":
self.saveSbmlLevel(request)
# elif request.POST['action'] == "set_model_publication":
# self.setModelPublication(request)
# self.savePickledModel(request)
return TemplateView.get(self, request, *args, **kwargs)
示例3: post
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
def post(self, request, *args, **kwargs):
self.load(request, *args, **kwargs)
if "action" in request.POST:
if HasWorkingModel.isChooseModel(self, request):
self.load(request, *args, **kwargs)
elif request.POST['action'] == "delete":
self.deleteUnitDefinition(request)
elif request.POST['action'] == "save":
self.saveUnitDefinition(request)
# self.savePickledModel(request)
return TemplateView.get(self, request, *args, **kwargs)
示例4: post
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
def post(self, request, *args, **kwargs):
self.load(request, *args, **kwargs)
if "action" in request.POST:
if HasWorkingModel.isChooseModel(self, request):
self.load(request, *args, **kwargs)
elif request.POST['action'] == "simulate_steady_states":
self.simulateModel(request)
elif request.POST['action'] == "save_simulation":
self.saveSimulation(request)
return TemplateView.get(self, request, *args, **kwargs)
示例5: post
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
def post(self, request, *args, **kwargs):
self.load(request, *args, **kwargs)
if "action" in request.POST:
if HasWorkingModel.isChooseModel(self, request):
self.load(request, *args, **kwargs)
elif request.POST['action'] == "compute_curve":
self.computeCurve(request)
self.loadComputations()
elif request.POST['action'] == "delete":
self.deleteCurve(request)
self.loadComputations()
return TemplateView.get(self, request, *args, **kwargs)
示例6: post
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
def post(self, request, *args, **kwargs):
self.load(request, *args, **kwargs)
if "action" in request.POST:
if HasWorkingModel.isChooseModel(self, request):
self.load(request, *args, **kwargs)
elif request.POST['action'] == "delete_optimization":
self.deleteOptimization(request)
elif request.POST['action'] == "stop_optimization":
self.stopOptimization(request)
elif request.POST['action'] == "restart_optimization":
self.restartOptimization(request)
return TemplateView.get(self, request, *args, **kwargs)
示例7: post
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
def post(self, request, *args, **kwargs):
self.load(request, *args, **kwargs)
# HasWorkingModel.load(self, request, *args, **kwargs)
if "action" in request.POST:
if HasWorkingModel.isChooseModel(self, request):
self.load(request, *args, **kwargs)
elif request.POST['action'] == "edit_model_name":
self.saveName(request)
elif request.POST['action'] == "edit_model_notes":
self.saveNotes(request)
elif request.POST['action'] == "set_model_publication":
self.setModelPublication(request)
# self.savePickledModel(request)
return TemplateView.get(self, request, *args, **kwargs)
示例8: post
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
def post(self, request, *args, **kwargs):
self.load(request, *args, **kwargs)
if "action" in request.POST:
if HasWorkingModel.isChooseModel(self, request):
self.load(request, *args, **kwargs)
elif request.POST['action'] == "delete":
self.deleteReaction(request)
elif request.POST['action'] == "save":
self.saveReaction(request)
elif request.POST['action'] == "edit_kineticlaw":
self.form.editKineticLaw(request)
self.load(request, *args, **kwargs)
# self.savePickledModel(request)
return TemplateView.get(self, request, *args, **kwargs)