openslides_backend/action/generics/update.py
def create_write_requests(self, instance: Dict[str, Any]) -> Iterable[WriteRequest]:
        """
        Creates a write request element for one instance of the current model.
        Just prepares a write request element with update event for the given
        instance.
        """
        fqid = FullQualifiedId(self.model.collection, instance["id"])
        information = "Object updated"
        fields = {
            k: v for k, v in instance.items() if k != "id" and not k.startswith("meta_")
        }
        if not fields:
            return []
        yield self.build_write_request(EventType.Update, fqid, information, fields)

        Creates a write request element for one instance of the current model.
        Just prepares a write request element with update event for the given
        instance.
        
Creates a write request element for one instance of the current model.
Just prepares a write request element with update event for the given
instance.
Creates a write request element for one instance of the current model . Just prepares a write request element with update event for the given instance .
def create_write_requests(self, instance: Dict[str, Any]) -> Iterable[WriteRequest]:
        fqid = FullQualifiedId(self.model.collection, instance["id"])
        information = "Object updated"
        fields = {
            k: v for k, v in instance.items() if k != "id" and not k.startswith("meta_")
        }
        if not fields:
            return []
        yield self.build_write_request(EventType.Update, fqid, information, fields)
def create_write_requests ( self , instance : Dict [ str , Any ] ) -> Iterable [ WriteRequest ] : fqid = FullQualifiedId ( self . model . collection , instance [ "id" ] ) information = "Object updated" fields = { k : v for k , v in instance . items ( ) if k != "id" and not k . startswith ( "meta_" ) } if not fields : return [ ] yield self . build_write_request ( EventType . Update , fqid , information , fields )
Creates a write request element for one instance of the current model.
Creates a write request element for one instance of the current model .
"""
        Creates a write request element for one instance of the current model.
        Just prepares a write request element with update event for the given
        instance.
        """
self
instance
Dict[str, Any]