mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr2: Create new generic methode '_data_traversal' for scenario duplicattion.
This commit is contained in:
1 parent
591cd8950c
commit
8173eb8de9
5 files changed
+57
-24
No files matched your search
@@ -202,7 +202,7 @@ class SQLSubModel(PamhyrID):
|
||||
self._owner_scenario = self._status.scenario_id
|
||||
self._status.modified()
|
||||
|
||||
def set_owner_scenario_if(self, predicate):
|
||||
def set_owner_scenario(self):
|
||||
"""Set study status the object owner_scenario to current
|
||||
scenario if predicate(scenario_id) is true
|
||||
|
||||
@@ -215,9 +215,8 @@ class SQLSubModel(PamhyrID):
|
||||
if self._status is None:
|
||||
return
|
||||
|
||||
if predicate(self._owner_scenario):
|
||||
self._owner_scenario = self._status.scenario_id
|
||||
self._status.modified()
|
||||
self._owner_scenario = self._status.scenario_id
|
||||
self._status.modified()
|
||||
|
||||
def is_deleted(self):
|
||||
"""This object is deleted?
|
||||
|
||||
Reference in new issue
Block a user