Accomplishments Reference

class accomplishments.daemon.dbusapi.AccomplishmentsDBusService(bus_name, session_bus, object_path='/', show_notifications=True)[source]
get_collection_authors(collection)[source]

Returns a list of authors for a given collection.

Every collection has an identifier (e.g. ubuntu-community) that we use to refer to the group of accomplishments that form that collection.

This function returns all authors (without duplicates) for the collection passed to it.

NEEDSTESTING

Args:
collection (str): the accomplishments collection identifier (e.g. ubuntu-community)
Returns:
(list) The list of categories from that collection.
Example:
>>> obj.get_collection_authors("ubuntu-community")
["Tom Araya", "Nicko McBrain", "James Hetfield", . . .]
get_collection_categories(collection)[source]

Returns a list of categories for a given collection.

Every collection has an identifier (e.g. ubuntu-community) that we use to refer to the group of accomplishments that form that collection.

This function returns all categories (without duplicates) for the collection passed to it.

Args:
collection (str): the accomplishments collection identifier (e.g. ubuntu-community)
Returns:
(list) The list of categories from that collection.
Example:
>>> obj.get_collection_categories("ubuntu-community")
["Launchpad", "Ask Ubuntu", "Development", . . .]
get_collection_exists(collection)[source]

Returns whether the collection exists or not on the disk.

Every collection has an identifier (e.g. ubuntu-community) that we use to refer to the group of accomplishments that form that collection.

This function returns a boolean value of whether the collection exists on the current installation.

NEEDSTESTING

Args:
collection (str): the accomplishments collection identifier (e.g. ubuntu-community)
Returns:
(bool) True if the collection exists, False if it doesn’t.
Example:
>>> obj.get_collection_exists("ubuntu-community")
True
get_collection_name(collection)[source]

Returns the name of the current collection.

Every collection has an identifier (e.g. ubuntu-community) that we use to refer to the group of accomplishments that form that collection.

This function returns the name of the current collection.

NEEDSTESTING

Args:
collection (str): the accomplishments collection identifier (e.g. ubuntu-community)
Returns:
(list) The list of categories from that collection.
Example:
>>> obj.get_collection_authors("ubuntu-community")
["Tom Araya", "Nicko McBrain", "James Hetfield", . . .]

This Page