PyFavorite
class PyFavorite(favorite)
Bases: PyEmptyIdContentReference
Interface for a content item named favorite.
- Parameters: favorite (IFavorite)
__init__(favorite)
Creates a new PyFavorite object.
Args: : favorite: A IFavorite object.
Returns: None.
- Parameters: favorite (IFavorite)
- Return type: None
Methods
__init__ (favorite) |
Creates a new PyFavorite object. |
---|
Attributes
content |
Gets or sets the IContentReference for the favorite. |
---|---|
content_type |
Gets or sets the content type for the favorite. |
content_url |
Get the site-unique "content URL" of the content item, or an empty string if the content type does not use a content URL. |
id |
Gets the empty unique identifier. |
label |
Gets or sets the label for the favorite. |
location |
Gets the logical location path of the content item, for project-level content this is the project path and the content item name. |
name |
Gets the name of the content item. |
user |
Gets the user IContentReference for the favorite. |
property label : str
Gets or sets the label for the favorite.
property user : PyContentReference
Gets the user IContentReference for the favorite.
property content : PyContentReference
Gets or sets the IContentReference for the favorite.
property content_type : PyFavoriteContentType
Gets or sets the content type for the favorite.
property content_url : str
Get the site-unique “content URL” of the content item, or an empty string if the content type does not use a content URL.
property id : UUID
Gets the empty unique identifier.
property location : PyContentLocation
Gets the logical location path of the content item, for project-level content this is the project path and the content item name.
property name : str
Gets the name of the content item. This is equivalent to the last segment of the Location. Renames should be performed through mapping.