Esempio n. 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
Esempio n. 2
0
 def action(jobject, dynamoJObject):
     hasRunWithoutCrashJValue = dynamoJObject[
         DYNAMO_HAS_RUN_WITHOUT_CRASH_ATTRIBUTE]
     hasRunWithoutCrash = json_util.GetValueFromJValue(
         hasRunWithoutCrashJValue)
     return hasRunWithoutCrash
Esempio n. 3
0
 def action(jobject, dynamoJObject):
     runTypeJValue = dynamoJObject[DYNAMO_RUNTYPE_ATTRIBUTE]
     runType = json_util.GetValueFromJValue(runTypeJValue)
     return runType
def GetRevitProcessIds(testModeData):
    return [
        json_util.GetValueFromJValue(revitProcessId)
        for revitProcessId in testModeData[TEST_MODE_DATA__REVIT_PROCESS_IDS]
    ]
def GetSessionId(testModeData):
    return json_util.GetValueFromJValue(
        testModeData[TEST_MODE_DATA__SESSION_ID])