PySourceContentReferenceFinder
class PySourceContentReferenceFinder(source_content_reference_finder, t)
Bases: Generic
[TContent
]
Interface for an object that can find source content reference.
- Parameters:
- source_content_reference_finder (ISourceContentReferenceFinder [ ])
- t (Type *[*TContent ])
__init__(source_content_reference_finder, t)
Creates a new PySourceContentReferenceFinder object.
Args: : source_content_reference_finder: A ISourceContentReferenceFinder object. t: The content type.
Returns: None.
- Parameters:
- source_content_reference_finder (ISourceContentReferenceFinder [ ])
- t (Type *[*TContent ])
- Return type: None
Methods
__init__ (source_content_reference_finder, t) |
Creates a new PySourceContentReferenceFinder object. |
---|---|
find_by_id (id[, cancel]) |
Finds the content reference by its unique identifier. |
find_by_source_location (source_location[, ...]) |
Finds the source content reference for the source content reference location. |
find_by_id(id, cancel=None)
Finds the content reference by its unique identifier.
Args: : id: The unique identifier. cancel: A cancellation token to obey.
Returns: The found content reference, or None if no content reference was found.
- Parameters: id (UUID)
- Return type: PyContentReference
find_by_source_location(source_location, cancel=None)
Finds the source content reference for the source content reference location.
Args: : source_location: The source content reference location. cancel: A cancellation token to obey.
Returns: The found source content reference, or None if no content reference was found.
- Parameters: source_location (PyContentLocation)
- Return type: PyContentReference