Skip to content

published_content_node_factory

Module to create high-level content node objects from ContentNodeTransport.

This module contains factory class to create high level published content node objects from ContentNodeTransport.

Typical usage example:

```python
package = PublishedContentNodeFactory.get_published_content_node(client, content_node_transport)
```

PublishedContentNodeFactory

Factory class to create published content nodes with given type from transport object.

get_published_content_node staticmethod

get_published_content_node(client, content_node_transport)

Returns instance of published content node subclass (e.g. folder) depending on node_type and asset_type.

Parameters:

  • client (Client) –

    Client to use to make API calls for given content node.

  • content_node_transport (ContentNodeTransport) –

    ContentNodeTransport containing properties of content node.

Returns: