Part of lp.registry.model.person View In Hierarchy
Method | __init__ | Extended version of the SQLObjectBase constructor. |
Method | __repr__ | Undocumented |
Method | displayname | Undocumented |
Method | account_status | Undocumented |
Method | account_status_history | Undocumented |
Method | setAccountStatus | Undocumented |
Method | description 0 | See IPerson . |
Method | description | Undocumented |
Method | ircnicknames | Undocumented |
Method | languages | See IPerson . |
Method | getLanguagesCache | Return this person's cached languages. |
Method | setLanguagesCache | Set this person's cached languages. |
Method | deleteLanguagesCache | Delete this person's cached languages, if it exists. |
Method | addLanguage | See IPerson . |
Method | removeLanguage | See IPerson . |
Method | convertToTeam | See IPerson . |
Method | oauth_access_tokens | See IPerson . |
Method | oauth_request_tokens | See IPerson . |
Method | latitude | See IHasLocation . |
Method | longitude | See IHasLocation . |
Method | location | See IObjectWithLocation . |
Method | time_zone | See IHasLocation . |
Method | setLocation | See ISetLocation . |
Method | findVisibleAssignedInProgressSpecs | See IPerson . |
Method | unique_displayname | See IPerson . |
Method | specifications | See IHasSpecifications . |
Method | getBugSubscriberPackages | See IPerson . |
Method | findPathToTeam | See IPerson . |
Method | is_team | See IPerson . |
Method | mailing_list | See IPerson . |
Method | searchTasks | See IHasBugs . |
Method | getProjectsAndCategoriesContributedTo | See IPerson . |
Method | getAffiliatedPillars | See IPerson . |
Method | getOwnedProjects | See IPerson . |
Method | isAnyPillarOwner | See IPerson. |
Method | getAllCommercialSubscriptionVouchers | See IPerson . |
Method | getRedeemableCommercialSubscriptionVouchers | See IPerson . |
Method | hasCurrentCommercialSubscription | See IPerson . |
Method | karma_category_caches | See IPerson . |
Method | karma | See IPerson . |
Method | is_valid_person_or_team | See IPerson . |
Method | is_valid_person | See IPerson . |
Method | is_probationary | See IPerson . |
Method | assignKarma | See IPerson . |
Method | latestKarma | See IPerson . |
Method | inTeam | See IPerson . |
Method | hasParticipationEntryFor | See IPerson . |
Method | leave | See IPerson . |
Method | join | See IPerson . |
Method | clearInTeamCache | See IPerson . |
Method | __storm_invalidated__ | Flush cached properties. |
Method | participant_ids | See IPerson . |
Method | getAssignedSpecificationWorkItemsDueBefore | See IPerson . |
Method | getAssignedBugTasksDueBefore | See IPerson . |
Method | subscription_policy 0 | Obsolete API 1.0 property. See IPerson . |
Method | subscription_policy | Undocumented |
Method | super_teams | See IPerson . |
Method | sub_teams | See IPerson . |
Method | getTeamAdminsEmailAddresses | See IPerson . |
Method | addMember | See IPerson . |
Method | acceptInvitationToBeMemberOf | Accept an invitation to become a member of the given team. |
Method | declineInvitationToBeMemberOf | Decline an invitation to become a member of the given team. |
Method | retractTeamMembership | See IPerson |
Method | renewTeamMembership | Renew the TeamMembership for this person on the given team. |
Method | setMembershipData | See IPerson . |
Method | getOwnedTeams | See IPerson . |
Method | administrated_teams | Undocumented |
Method | getAdministratedTeams | See IPerson . |
Method | getDirectAdministrators | See IPerson . |
Method | getMembersByStatus | See IPerson . |
Method | checkInclusiveMembershipPolicyAllowed | See ITeam |
Method | checkExclusiveMembershipPolicyAllowed | See ITeam |
Method | wiki_names | See IPerson . |
Method | title | See IPerson . |
Method | allmembers | See IPerson . |
Method | api_all_members | See IPerson . |
Method | getMembersWithPreferredEmails | See IPerson . |
Method | getMembersWithPreferredEmailsCount | See IPerson . |
Method | all_member_count | See IPerson . |
Method | invited_members | See IPerson . |
Method | api_invited_members | Undocumented |
Method | invited_member_count | See IPerson . |
Method | deactivatedmembers | See IPerson . |
Method | api_deactivatedmembers | Undocumented |
Method | deactivated_member_count | See IPerson . |
Method | expiredmembers | See IPerson . |
Method | api_expiredmembers | Undocumented |
Method | expired_member_count | See IPerson . |
Method | proposedmembers | See IPerson . |
Method | api_proposedmembers | Undocumented |
Method | proposed_member_count | See IPerson . |
Method | adminmembers | See IPerson . |
Method | api_adminmembers | Undocumented |
Method | approvedmembers | See IPerson . |
Method | activemembers | See IPerson . |
Method | api_activemembers | See IPerson . |
Method | active_member_count | See IPerson . |
Method | inactivemembers | See IPerson . |
Method | inactive_member_count | See IPerson . |
Method | pendingmembers | See IPerson . |
Method | team_memberships | See IPerson . |
Method | anyone_can_join | Undocumented |
Method | open_membership_invitations | See IPerson . |
Method | canDeactivate | See IPerson . |
Method | preDeactivate | Undocumented |
Method | deactivate | See IPersonSpecialRestricted . |
Method | private | See IPerson . |
Method | isMergePending | See IPublicPerson . |
Method | visibilityConsistencyWarning | Warning used when changing the team's visibility. |
Method | member_memberships | See IPerson . |
Method | getInactiveMemberships | See IPerson . |
Method | getInvitedMemberships | See IPerson . |
Method | getProposedMemberships | See IPerson . |
Method | getLatestApprovedMembershipsForPerson | See IPerson . |
Method | getPathsToTeams | See Iperson . |
Method | teams_participated_in | See IPerson . |
Method | teams_indirectly_participated_in | See IPerson . |
Method | teams_with_icons | See IPerson . |
Method | defaultexpirationdate | See IPerson . |
Method | defaultrenewedexpirationdate | See IPerson . |
Method | reactivate | See IPersonSpecialRestricted . |
Method | validateAndEnsurePreferredEmail | See IPerson . |
Method | setContactAddress | See IPerson . |
Method | setPreferredEmail | See IPerson . |
Method | preferredemail | See IPerson . |
Method | safe_email_or_blank | See IPerson . |
Method | validatedemails | See IPerson . |
Method | unvalidatedemails | See IPerson . |
Method | guessedemails | See IPerson . |
Method | pending_gpg_keys | See IPerson . |
Method | inactive_gpg_keys | See IPerson . |
Method | gpg_keys | See IPerson . |
Method | hasMaintainedPackages | See IPerson . |
Method | hasUploadedButNotMaintainedPackages | See IPerson . |
Method | hasUploadedPPAPackages | See IPerson . |
Method | getLatestMaintainedPackages | See IPerson . |
Method | getLatestUploadedButNotMaintainedPackages | See IPerson . |
Method | getLatestUploadedPPAPackages | See IPerson . |
Method | hasSynchronisedPublishings | See IPerson . |
Method | getLatestSynchronisedPublishings | See IPerson . |
Method | createRecipe | See IPerson . |
Method | getRecipe | Undocumented |
Method | is_ubuntu_coc_signer | See IPerson . |
Method | activesignatures | See IPerson . |
Method | inactivesignatures | See IPerson . |
Method | archive | See IPerson . |
Method | getArchiveSubscriptions | See IPerson . |
Method | getArchiveSubscriptionURLs | See IPerson . |
Method | getArchiveSubscriptionURL | See IPerson . |
Method | ppas | See IPerson . |
Method | getVisiblePPAs | See IPerson . |
Method | getPPAByName | See IPerson . |
Method | createPPA | See IPerson . |
Method | isBugContributor | See IPerson . |
Method | isBugContributorInTarget | See IPerson . |
Method | structural_subscriptions | See IPerson . |
Method | autoSubscribeToMailingList | See IPerson . |
Method | hardware_submissions | See IPerson . |
Method | recipes | See IHasRecipes . |
Method | canAccess | See IPerson. |
Method | canWrite | See IPerson. |
Method | checkRename | See IPerson. |
Method | canCreatePPA | See IPerson. |
Method | checkAllowVisibility | Undocumented |
Method | security_field_changed | See IPerson . |
Method | transitionVisibility | Undocumented |
Method | _person_settings | Undocumented |
Method | _validate_name | Check that rename is allowed. |
Method | _init | Mark the person as a team when created or fetched from database. |
Method | _getDirectMemberIParticipateIn | Return a direct member of the given team that this person |
Method | _customizeSearchParams | No-op, to satisfy a requirement of HasBugsBase. |
Method | _getProjectsWithTheMostKarma | Return the product/distribution and karma points of this person. |
Method | _genAffiliatedProductSql | Helper to generate the product sql for getAffiliatePillars |
Method | _getContributedCategories | Return the KarmaCategories to which this person has karma on the |
Method | _accept_or_decline_membership | Undocumented |
Method | _getEmailsByStatus | Undocumented |
Static Method | _validity_queries | Return storm expressions and a decorator function for validity. |
Method | _members | Lookup all members of the team with optional precaching. |
Method | _getMembersWithPreferredEmails | Helper method for public getMembersWithPreferredEmails. |
Method | _ensureNewName | Return a unique name. |
Method | _getMembershipsByStatuses | All `ITeamMembership`s in any given status for this team's members. |
Method | _unsetPreferredEmail | Change the preferred email address to VALIDATED. |
Method | _setPreferredEmail | Set this person's preferred email to the given email address. |
Method | _releasesQueryFilter | Return the filter used to find latest published source package |
Method | _hasReleasesQuery | Are there sourcepackagereleases (SPRs) related to this person. |
Method | _latestReleasesQuery | Return the sourcepackagereleases records related to this person. |
Static Method | _is_ubuntu_coc_signer_condition | Generate a Storm Expr for determing the coc signing status. |
Method | _ensurePolicies | Undocumented |
Inherited from SQLBase:
Method | destroySelf | Undocumented |
Method | __eq__ | Equality operator. |
Method | __ne__ | Inverse of __eq__. |
Class Method | _get_store | Undocumented |
Inherited from HasBugsBase:
Method | getBugSummaryContextWhereClause | Return a storm clause to filter bugsummaries on this context. |
Method | getBugTaskWeightFunction | Default weight function is the simple one. |
Inherited from HasSpecificationsMixin:
Method | visible_specifications | See IHasSpecifications. |
Method | valid_specifications | See IHasSpecifications. |
Method | api_valid_specifications | Undocumented |
Method | specificationCount | See IHasSpecifications. |
Method | _specification_sort | Return the storm sort order for 'specifications'. |
Inherited from HasTranslationImportsMixin:
Method | getFirstEntryToImport | See IHasTranslationImports . |
Method | getTranslationImportQueueEntries | See IHasTranslationImports . |
Inherited from HasBranchesMixin:
Method | getBranches | See IHasBranches . |
Inherited from HasMergeProposalsMixin:
Method | getMergeProposals | See IHasMergeProposals . |
Inherited from HasRequestedReviewsMixin:
Method | getRequestedReviews | See IHasRequestedReviews . |
Method | getOwnedAndRequestedReviews | See IHasRequestedReviews . |
Inherited from QuestionsPersonMixin:
Method | searchQuestions | See IQuestionsPerson . |
Method | getQuestionLanguages | See IQuestionCollection . |
Method | getDirectAnswerQuestionTargets | See IQuestionsPerson . |
Method | getTeamAnswerQuestionTargets | See IQuestionsPerson . |
Method | _getQuestionTargetsFromAnswerContacts | Return a list of active IQuestionTargets. |
We force use of the master Store.
We refetch any parameters from different stores from the correct master Store.
Raises | AttributeError | If the cache doesn't exist. |
Order them by name if necessary.
IHasLocation
.
We no longer allow users to set their geographical location but we need to keep this because it was exported on version 1.0 of the API.
IHasLocation
.
We no longer allow users to set their geographical location but we need to keep this because it was exported on version 1.0 of the API.
IHasSpecifications
.If there are more than one direct member of the given team that this person participates in, the one with the oldest creation date is returned.
Inactive products are ignored.
The results are ordered descending by the karma points and limited to the given limit.
The given pillar must be either an IProduct or an IDistribution.
IPerson
.
Users without karma have not demostrated their intentions may not have the same privileges as users who have made contributions.
IPerson
.IPerson
.There must be a TeamMembership for this person and the given team with the INVITED status. The status of this TeamMembership will be changed to APPROVED.
There must be a TeamMembership for this person and the given team with the INVITED status. The status of this TeamMembership will be changed to INVITATION_DECLINED.
The given team's renewal policy must be ONDEMAND and the membership must be active (APPROVED or ADMIN) and set to expire in less than DAYS_BEFORE_EXPIRATION_WARNING_IS_SENT days.
Return storm expressions and a decorator function for validity. Preloading validity implies preloading preferred email addresses. :param person_table: The person table to join to. Only supply if ClassAliases are in use. :return: A dict with four keys joins, tables, conditions, decorators * joins are additional joins to use. e.g. [LeftJoin,LeftJoin] * tables are tables to use e.g. [EmailAddress, Account] * decorators are callbacks to call for each row. Each decorator takes (Person, column) where column is the column in the result set for that decorators type.
Parameters | direct | If True only direct members are returned. |
preload_for_api | Preload attributes contained in the API JSON representation. |
We can't return the preferred email address directly to the browser code, since it would circumvent the security restrictions on accessing person.preferredemail.
IPersonSpecialRestricted
.A private-membership team cannot be connected to other objects, since it may be possible to infer the membership.
All `ITeamMembership`s in any given status for this team's members. :param statuses: A list of `TeamMembershipStatus` items. If called on an person rather than a team, this will obviously return no memberships at all.
If the person already has an email address, then its status is changed to VALIDATED and the given one is made its preferred one.
The given email address must implement IEmailAddress and be owned by this person.
Active 'ppa_only' flag is usually associated with active 'uploader_only' because there shouldn't be any sense of maintainership for packages uploaded to PPAs by someone else than the user themselves.
Parameters | uploader_only | controls if we are interested in SPRs where
the person in question is only the uploader (creator) and not the
maintainer (debian-syncs) if the ppa_only parameter is also
False, or, if the flag is False, it returns all SPR maintained
by this person. |
ppa_only | controls if we are interested only in source package releases targeted to any PPAs or, if False, sources targeted to primary archives. |
_releasesQueryFilter
for details on the criteria used._releasesQueryFilter
for details on the criteria used.IPerson
.