From: boulant Date: Fri, 28 Oct 2011 16:55:25 +0000 (+0000) Subject: The function ObjectToSObject, ... are already defined in salome.py but with less... X-Git-Tag: V6_5_0a1~67 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3bf742f69c4e528be4556e76f8318c36c53cb74e;p=modules%2Fkernel.git The function ObjectToSObject, ... are already defined in salome.py but with less arguments (the study is predefined as a global variable in salome.py). --- diff --git a/src/KERNEL_PY/kernel/services.py b/src/KERNEL_PY/kernel/services.py index 90bd44f5e..032242bf6 100644 --- a/src/KERNEL_PY/kernel/services.py +++ b/src/KERNEL_PY/kernel/services.py @@ -135,11 +135,6 @@ def __getStudyManager_demo(): # ============================================================================== # -# TO BE COMPLETED: -# With functions to manipulate object, sobject, etc (See -# GUI_SRC/src/SALOME_SWIG/salome.py). The functions to manipulate the -# study are implemented in the Study Editor (see studyedit.py) - # - the SObject is an item in a study (Study Object). # - the entry is the identifier of an item. # - the ID is the entry @@ -147,6 +142,13 @@ def __getStudyManager_demo(): # embedded in the SALOME component container and with a reference in # the SALOME study, so that it can be retrieved. +# __GBO__ WARN: theses functions are already defined in +# salome_study.py, but without the possibility to specify the +# underlying study (in salome_study.py, the study is the default study +# binded to the salome.myStudy attribute). TODO: see if it can be +# extends to the prototype (with the study as an argument) below and +# resorb the functions below. + def IDToObject(id, study=None): myObj = None if study is None: