コード例 #1
0
 def action(jobject, dynamoJObject):
     prevRunTypeJValue = dynamoJObject[DYNAMO_RUNTYPE_ATTRIBUTE]
     prevRunType = json_util.GetValueFromJValue(prevRunTypeJValue)
     dynamoJObject[DYNAMO_RUNTYPE_ATTRIBUTE] = runType
     dynamoHasRunWithoutCrashJValue = dynamoJObject[
         DYNAMO_HAS_RUN_WITHOUT_CRASH_ATTRIBUTE]
     if dynamoHasRunWithoutCrashJValue is not None:
         dynamoJObject[DYNAMO_HAS_RUN_WITHOUT_CRASH_ATTRIBUTE] = True
     return prevRunType
コード例 #2
0
 def action(jobject, dynamoJObject):
     hasRunWithoutCrashJValue = dynamoJObject[
         DYNAMO_HAS_RUN_WITHOUT_CRASH_ATTRIBUTE]
     hasRunWithoutCrash = json_util.GetValueFromJValue(
         hasRunWithoutCrashJValue)
     return hasRunWithoutCrash
コード例 #3
0
 def action(jobject, dynamoJObject):
     runTypeJValue = dynamoJObject[DYNAMO_RUNTYPE_ATTRIBUTE]
     runType = json_util.GetValueFromJValue(runTypeJValue)
     return runType
コード例 #4
0
def GetRevitProcessIds(testModeData):
    return [
        json_util.GetValueFromJValue(revitProcessId)
        for revitProcessId in testModeData[TEST_MODE_DATA__REVIT_PROCESS_IDS]
    ]
コード例 #5
0
def GetSessionId(testModeData):
    return json_util.GetValueFromJValue(
        testModeData[TEST_MODE_DATA__SESSION_ID])