(self, case_type)
return reg_actions
:return: List of actions that create a case. Subcase actions are included
                 as long as they are not inside a repeat. If case_type is not None
                 only return actions that create a case of the specified type.
:return: List of actions that create a case. Subcase actions are included
                 as long as they are not inside a repeat. If case_type is not None
                 only return actions that create a case of the specified type.
: return : List of actions that create a case . Subcase actions are included as long as they are not inside a repeat . If case_type is not None only return actions that create a case of the specified type .
def get_registration_actions(self, case_type):
        """
        :return: List of actions that create a case. Subcase actions are included
                 as long as they are not inside a repeat. If case_type is not None
                 only return actions that create a case of the specified type.
        """
        reg_actions = []
        if 'open_case' in self.active_actions() and (not case_type or self.get_module().case_type == case_type):
            reg_actions.append('open_case')

        subcase_actions = [action for action in self.actions.subcases if not action.repeat_context]
        if case_type:
            subcase_actions = [a for a in subcase_actions if a.case_type == case_type]

        reg_actions.extend(subcase_actions)
        return reg_actions
def get_registration_actions ( self , case_type ) : reg_actions = [ ] if 'open_case' in self . active_actions ( ) and ( not case_type or self . get_module ( ) . case_type == case_type ) : reg_actions . append ( 'open_case' ) subcase_actions = [ action for action in self . actions . subcases if not action . repeat_context ] if case_type : subcase_actions = [ a for a in subcase_actions if a . case_type == case_type ] reg_actions . extend ( subcase_actions ) return reg_actions