PyContentMappingContext
class PyContentMappingContext(content_mapping_context)
Bases: Generic
[TContent
]
Context for IContentMapping operations mapping a content item to an intended destination location for publishing and content references.
- Parameters: content_mapping_context (ContentMappingContext [ ])
__init__(content_mapping_context)
Creates a new PyContentMappingContext object.
Args: : content_mapping_context: A ContentMappingContext object.
Returns: None.
- Parameters: content_mapping_context (ContentMappingContext [ ])
- Return type: None
Methods
__init__ (content_mapping_context) |
Creates a new PyContentMappingContext object. |
---|---|
map_to (mapped_location) |
Maps the content item to a new destination location. |
Attributes
content_item |
Gets the content item being mapped. |
---|---|
mapped_location |
Gets the destination location the content item will be mapped and/or published to. |
property content_item : TContent
Gets the content item being mapped.
map_to(mapped_location)
Maps the content item to a new destination location.
Args: : mapped_location: The destination location to map to.
Returns: A new context for the content item with the mapped location.
- Parameters: mapped_location (PyContentLocation)
- Return type: Self
property mapped_location : PyContentLocation
Gets the destination location the content item will be mapped and/or published to.