openslides_backend/action/actions/organization/initial_import.py
def perform(
        self, action_data: ActionData, user_id: int, internal: bool = False
    ) -> Tuple[Optional[WriteRequest], Optional[ActionResults]]:
        """
        Simplified entrypoint to perform the action.
        """
        self.user_id = user_id
        self.index = 0
        instance = next(iter(action_data))
        self.validate_instance(instance)
        instance = self.update_instance(instance)
        self.write_requests.extend(self.create_write_requests(instance))
        final_write_request = self.process_write_requests()
        return (final_write_request, [None])

        Simplified entrypoint to perform the action.
        
Simplified entrypoint to perform the action.
Simplified entrypoint to perform the action .
def perform(
        self, action_data: ActionData, user_id: int, internal: bool = False
    ) -> Tuple[Optional[WriteRequest], Optional[ActionResults]]:
        self.user_id = user_id
        self.index = 0
        instance = next(iter(action_data))
        self.validate_instance(instance)
        instance = self.update_instance(instance)
        self.write_requests.extend(self.create_write_requests(instance))
        final_write_request = self.process_write_requests()
        return (final_write_request, [None])
def perform ( self , action_data : ActionData , user_id : int , internal : bool = False ) -> Tuple [ Optional [ WriteRequest ] , Optional [ ActionResults ] ] : self . user_id = user_id self . index = 0 instance = next ( iter ( action_data ) ) self . validate_instance ( instance ) instance = self . update_instance ( instance ) self . write_requests . extend ( self . create_write_requests ( instance ) ) final_write_request = self . process_write_requests ( ) return ( final_write_request , [ None ] )
Simplified entrypoint to perform the action.
Simplified entrypoint to perform the action .
"""
        Simplified entrypoint to perform the action.
        """
self
action_data
ActionData
user_id
int
internal
bool