fairdm.contrib.contributors.plugins.person#

Plugins for contributor pages: the projects and datasets a contributor is credited on.

Module Contents#

Classes#

ContributorProjects

List the projects a contributor is credited on.

ContributorDatasets

List the datasets a contributor is credited on.

API#

class ContributorProjects(**kwargs)#

Bases: fairdm.contrib.plugins.Plugin, fairdm.core.project.views.ProjectListView

List the projects a contributor is credited on.

Initialization

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

page_title#

‘_(…)’

get_queryset(*args, **kwargs)#

Limit to this contributor’s projects.

get_page_title()#

Title the page “My Projects” on the user’s own profile.

class ContributorDatasets(**kwargs)#

Bases: fairdm.contrib.plugins.Plugin, fairdm.core.dataset.views.DatasetListView

List the datasets a contributor is credited on.

Initialization

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

page_title#

‘_(…)’

get_queryset(*args, **kwargs)#

Limit to this contributor’s datasets.

get_page_title()#

Title the page “My Datasets” on the user’s own profile.