@@ -117,6 +117,18 @@ def getCVUnitsTypes(self):
117117 """
118118 return self ._session .query (CVUnitsType ).all ()
119119
120+ def getCVActionTypes (self ):
121+ """
122+ Select all on CVActionType
123+ """
124+ return self ._session .query (CVActionType ).all ()
125+
126+ def getCVMethodTypes (self ):
127+ """
128+ Select all on CVMethodType
129+ """
130+ return self ._session .query (CVMethodType ).all ()
131+
120132# ################################################################################
121133# Core
122134# ################################################################################
@@ -226,6 +238,9 @@ def getMethodByCode(self, methodCode):
226238 return self ._session .query (Methods ).filter_by (MethodCode = methodCode ).first ()
227239 except :
228240 return None
241+
242+ def getMethodsByType (self , methodTypeCV ):
243+ return self ._session .query (Methods ).filter_by (MethodTypeCV = methodTypeCV ).all ()
229244
230245 """
231246 ProcessingLevel
@@ -347,7 +362,6 @@ def getActions(self):
347362 """
348363 Select all on Action
349364 """
350- print self ._session .query (Actions ).all ()
351365 return self ._session .query (Actions ).all ()
352366
353367 def getActionById (self , actionId ):
@@ -358,7 +372,7 @@ def getActionById(self, actionId):
358372 return self ._session .query (Actions ).filter_by (ActionID = actionId ).first ()
359373 except :
360374 return None
361-
375+
362376
363377 """
364378 Unit
0 commit comments