l.r.b.p.PersonView(LaunchpadView, FeedsMixin, ContactViaWebLinksMixin) : class documentation

Part of lp.registry.browser.person View In Hierarchy

Known subclasses: lp.registry.browser.person.PersonIndexView, lp.registry.browser.poll.TeamPollsView

A View class used in almost all Person's pages.
Method should_show_ubuntu_coc_section Should the 'Code of Conduct' section be shown?
Method should_show_ircnicknames_section Should the 'IRC nicknames' section be shown?
Method should_show_jabberids_section Should the 'Jabber IDs' section be shown?
Method should_show_sshkeys_section Should the 'SSH keys' section be shown?
Method should_show_gpgkeys_section Should the 'OpenPGP keys' section be shown?
Method gpg_keys A cached version of the users OpenPGP keys.
Method is_probationary_or_invalid_user True when the user is not active or does not have karma.
Method recently_approved_members Undocumented
Method recently_proposed_members Undocumented
Method recently_invited_members Undocumented
Method recently_approved_hidden Optionally hide the div.
Method recently_proposed_hidden Optionally hide the div.
Method recently_invited_hidden Optionally hide the div.
Method openpolls Undocumented
Method closedpolls Undocumented
Method notyetopenedpolls Undocumented
Method contributions Cache the results of getProjectsAndCategoriesContributedTo().
Method contributed_categories Return all karma categories in which this person has some karma.
Method context_is_probably_a_team Return True if we have any indication that context is a team.
Method is_delegated_identity Should the page delegate identity to the OpenId identitier.
Method openid_identity_url The public OpenID identity URL. That's the profile page.
Method getURLToAssignedBugsInProgress Return an URL to a page which lists all bugs assigned to this
Method assigned_bugs_in_progress Return up to 5 assigned bugs that are In Progress.
Method assigned_specs_in_progress Return up to 5 assigned specs that are being worked on.
Method has_assigned_bugs_or_specs_in_progress Does the user have any bugs or specs that are being worked on?
Method viewing_own_page Undocumented
Method can_contact Can the user contact this context (this person or team)?
Method should_show_polls_portlet Undocumented
Method has_current_polls Return True if this team has any non-closed polls.
Method userIsOwner Return True if the user is the owner of this Team.
Method findUserPathToTeam Undocumented
Method userIsParticipant Return true if the user is a participant of this team.
Method email_address_visibility The EmailAddressVisibleState of this person or team.
Method visible_email_addresses The list of email address that can be shown.
Method visible_email_address_description A description of who can see a user's email addresses.
Method showSSHKeys Return a data structure used for display of raw SSH keys
Method archive_url Return a url to a mailing list archive for the team's list.
Method languages The user's preferred languages, or English if none are set.
Method should_show_ppa_section Return True if "Personal package archives" is to be shown.
Method visible_ppas Undocumented
Method time_zone_offset Return a string with offset from UTC

Inherited from FeedsMixin:

Method feed_links Undocumented

Inherited from ContactViaWebLinksMixin:

Method group_to_contact Contacting a team may contact different email addresses.
Method contact_link_title Return the appropriate +contactuser link title for the tooltip.
Method specific_contact_text Return the appropriate link text.
@property
def should_show_ubuntu_coc_section(self):
Should the 'Code of Conduct' section be shown?

It's shown when the person has signed the code of conduct or has rights to sign it.

@property
def should_show_ircnicknames_section(self):
Should the 'IRC nicknames' section be shown?

It's shown when the person has IRC nicknames registered or has rights to register new ones.

@property
def should_show_jabberids_section(self):
Should the 'Jabber IDs' section be shown?

It's shown when the person has Jabber IDs registered or has rights to register new ones.

@property
def should_show_sshkeys_section(self):
Should the 'SSH keys' section be shown?

It's shown when the person has SSH keys registered or has rights to register new ones.

@property
def should_show_gpgkeys_section(self):
Should the 'OpenPGP keys' section be shown?

It's shown when the person has OpenPGP keys registered or has rights to register new ones.

@cachedproperty
def gpg_keys(self):
A cached version of the users OpenPGP keys.
@cachedproperty
def is_probationary_or_invalid_user(self):
True when the user is not active or does not have karma.

Some content should not be rendered when the context is not a an established user. For example, probationary and invalid user pages must not be indexed by search engines and their narrative linkified.

@cachedproperty
def recently_approved_members(self):
Undocumented
@cachedproperty
def recently_proposed_members(self):
Undocumented
@cachedproperty
def recently_invited_members(self):
Undocumented
@property
def recently_approved_hidden(self):
Optionally hide the div.

The AJAX on the page needs the elements to be present but hidden in case it adds a member to the list.

@property
def recently_proposed_hidden(self):
Optionally hide the div.

The AJAX on the page needs the elements to be present but hidden in case it adds a member to the list.

@property
def recently_invited_hidden(self):
Optionally hide the div.

The AJAX on the page needs the elements to be present but hidden in case it adds a member to the list.

@cachedproperty
def openpolls(self):
Undocumented
@cachedproperty
def closedpolls(self):
Undocumented
@cachedproperty
def notyetopenedpolls(self):
Undocumented
@cachedproperty
def contributions(self):
Cache the results of getProjectsAndCategoriesContributedTo().
@cachedproperty
def contributed_categories(self):
Return all karma categories in which this person has some karma.
@cachedproperty
def context_is_probably_a_team(self):
Return True if we have any indication that context is a team.

For now, all we do is check whether or not any email associated with our context contains the '@lists.' string as that's a very good indication this is a team which was automatically created.

This can only be used when the context is an automatically created profile (account_status == NOACCOUNT).

@cachedproperty
def is_delegated_identity(self):
Should the page delegate identity to the OpenId identitier.

We only do this if it's enabled for the vhost.

@cachedproperty
def openid_identity_url(self):
The public OpenID identity URL. That's the profile page.
def getURLToAssignedBugsInProgress(self):
Return an URL to a page which lists all bugs assigned to this person that are In Progress.
@cachedproperty
def assigned_bugs_in_progress(self):
Return up to 5 assigned bugs that are In Progress.
@cachedproperty
def assigned_specs_in_progress(self):
Return up to 5 assigned specs that are being worked on.
@property
def has_assigned_bugs_or_specs_in_progress(self):
Does the user have any bugs or specs that are being worked on?
@property
def viewing_own_page(self):
Undocumented
@property
def can_contact(self):
Can the user contact this context (this person or team)?

Users can contact other valid users and teams. Anonymous users cannot contact persons or teams, and no one can contact an invalid person (inactive or without a preferred email address).

@property
def should_show_polls_portlet(self):
Undocumented
@property
def has_current_polls(self):
Return True if this team has any non-closed polls.
def userIsOwner(self):
Return True if the user is the owner of this Team.
def findUserPathToTeam(self):
Undocumented
def userIsParticipant(self):
Return true if the user is a participant of this team.

A person is said to be a team participant when they're a member of that team, either directly or indirectly via another team membership.

@cachedproperty
def email_address_visibility(self):
The EmailAddressVisibleState of this person or team.
ReturnsThe state of what a logged in user may know of a person or team's email addresses. (type: EmailAddressVisibleState)
@property
def visible_email_addresses(self):
The list of email address that can be shown.

The list contains email addresses when the EmailAddressVisibleState's PUBLIC or ALLOWED attributes are True. The preferred email address is the first in the list, the other validated email addresses are not ordered. When the team is the context, only the preferred email address is in the list.

ReturnsA list of email address strings that can be seen.
@property
def visible_email_address_description(self):
A description of who can see a user's email addresses.
ReturnsA string, or None if the email addresses cannot be viewed by any user.
def showSSHKeys(self):
Return a data structure used for display of raw SSH keys
@cachedproperty
def archive_url(self):
Return a url to a mailing list archive for the team's list.

If the person is not a team, does not have a mailing list, that mailing list has never been activated, or the team is private and the logged in user is not a team member, return None instead. The url is also returned if the user is a Launchpad admin.

@cachedproperty
def languages(self):
The user's preferred languages, or English if none are set.
@cachedproperty
def should_show_ppa_section(self):
Return True if "Personal package archives" is to be shown.

We display it if: current_user may view at least one PPA or current_user has lp.edit

@cachedproperty
def visible_ppas(self):
Undocumented
@property
def time_zone_offset(self):
Return a string with offset from UTC
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.