Parse the given chunk of data into the given model by using the
models.mappings, model.container and model.container_items.
This is a very complex method you could use to parse any given chunk of
data you get over a http request to the given model. It is also able to
find listitems and parse the values. It then wraps the values into a new
created model.container_items
Model by calling the same method
with the value and the model again. After wards it appends it to the list
specified in model.container.
Parameters | data | the chunk of data to parse into the model
(type: str
) |
| model | The Model to parse it into
(type: elisa.plugins.daap.models.DaapModel
) |
Returns | the tail of the data it was not able to parse in case it's missing some
data to be able to unpack it. You should keep this data and reuse it for a
new request, when you have more data.
(type: str
) |
Raises | NotImplementedError | when a container is found but the given model doesn't support containers.
|