intficpy/serializer.py
def is_valid(self):
        """
        Try deserializing the data.
        On success, return True, and set load_file.validated_data
        On failure, delete the temporary objects, and return False
        """
        for key, subdict in self.data.items():
            if not key in self.allowed_keys:
                return False
            if key in self.single_object_keys:
                try:
                    self.deserialize_attribute(value)
                except DeserializationError:
                    return False
                continue

            for ix, obj in subdict.items():
                if not ix in self.game.ifp_objects:
                    return False

                for attr, value in obj.items():
                    try:
                        self.deserialize_attribute(value)
                    except DeserializationError:
                        return False

        self.validated_data = self.data
        return True

        Try deserializing the data.
        On success, return True, and set load_file.validated_data
        On failure, delete the temporary objects, and return False
        
Try deserializing the data.
On success, return True, and set load_file.validated_data
On failure, delete the temporary objects, and return False
Try deserializing the data . On success return True and set load_file . validated_data On failure delete the temporary objects and return False
def is_valid(self):
        for key, subdict in self.data.items():
            if not key in self.allowed_keys:
                return False
            if key in self.single_object_keys:
                try:
                    self.deserialize_attribute(value)
                except DeserializationError:
                    return False
                continue
            for ix, obj in subdict.items():
                if not ix in self.game.ifp_objects:
                    return False
                for attr, value in obj.items():
                    try:
                        self.deserialize_attribute(value)
                    except DeserializationError:
                        return False
        self.validated_data = self.data
        return True
def is_valid ( self ) : for key , subdict in self . data . items ( ) : if not key in self . allowed_keys : return False if key in self . single_object_keys : try : self . deserialize_attribute ( value ) except DeserializationError : return False continue for ix , obj in subdict . items ( ) : if not ix in self . game . ifp_objects : return False for attr , value in obj . items ( ) : try : self . deserialize_attribute ( value ) except DeserializationError : return False self . validated_data = self . data return True
Try deserializing the data.
Try deserializing the data .
"""
        Try deserializing the data.
        On success, return True, and set load_file.validated_data
        On failure, delete the temporary objects, and return False
        """
self