distro_tracker API
The modules listed here contain the most interesting API available in distro-tracker, in particular:
distro_tracker.core
contains all the basemodels
andviews
, thetask API
, and other commonutilities
.distro_tracker.test
contain many helper methods that you will find useful to write unit tests for new code.
- distro_tracker.accounts
- distro_tracker.accounts.models
- distro_tracker.accounts.views
ConfirmationRenderMixin
LoginView
LogoutView
RegisterUser
RegistrationConfirmation
ResetPasswordView
ForgotPasswordView
ChangePersonalInfoView
PasswordChangeView
AccountProfile
ManageAccountEmailsView
AccountMergeConfirmView
AccountMergeFinalize
AccountMergeConfirmedView
ConfirmAddAccountEmail
SubscriptionsView
UserEmailsView
SubscribeUserToPackageView
UnsubscribeUserView
UnsubscribeAllView
ChooseSubscriptionEmailView
ModifyKeywordsView
- distro_tracker.accounts.hooks
- distro_tracker.core
- Core internal API
- distro_tracker.core.models
Keyword
EmailSettings
EmailSettings.user_email
EmailSettings.default_keywords
EmailSettings.email
EmailSettings.user
EmailSettings.save()
EmailSettings.is_subscribed_to()
EmailSettings.unsubscribe_all()
EmailSettings.DoesNotExist
EmailSettings.MultipleObjectsReturned
EmailSettings.id
EmailSettings.objects
EmailSettings.packagename_set
EmailSettings.subscription_set
EmailSettings.user_email_id
PackageManagerQuerySet
PackageManager
PackageName
PackageName.name
PackageName.source
PackageName.binary
PackageName.pseudo
PackageName.subscriptions
PackageName.objects
PackageName.source_packages
PackageName.binary_packages
PackageName.pseudo_packages
PackageName.default_manager
PackageName.get_absolute_url()
PackageName.get_package_type_display()
PackageName.get_action_item_for_type()
PackageName.delete()
PackageName.save()
PackageName.DoesNotExist
PackageName.MultipleObjectsReturned
PackageName.action_items
PackageName.binary_bug_stats
PackageName.binary_package_versions
PackageName.bug_stats
PackageName.data
PackageName.id
PackageName.membershippackagespecifics_set
PackageName.news_set
PackageName.source_dependencies
PackageName.source_dependents
PackageName.source_package_versions
PackageName.subscription_set
PackageName.teams
PseudoPackageName
BinaryPackageName
SourcePackageName
get_web_package()
SubscriptionManager
Subscription
Architecture
RepositoryManager
Repository
Repository.name
Repository.shorthand
Repository.uri
Repository.public_uri
Repository.suite
Repository.codename
Repository.components
Repository.architectures
Repository.default
Repository.optional
Repository.binary
Repository.source
Repository.source_packages
Repository.position
Repository.objects
Repository.find()
Repository.sources_list_entry
Repository.component_urls
Repository.get_source_package_entry()
Repository.add_source_package()
Repository.has_source_package_name()
Repository.has_source_package()
Repository.has_binary_package()
Repository.add_binary_package()
Repository.release_file_url()
Repository.clean()
Repository.is_development_repository()
Repository.get_flags()
Repository.DoesNotExist
Repository.MultipleObjectsReturned
Repository.binary_entries
Repository.flags
Repository.id
Repository.relations
Repository.reverse_relations
Repository.source_entries
Repository.sourcepackagedeps_set
RepositoryFlag
RepositoryRelation
RepositoryRelation.RELATION_NAMES
RepositoryRelation.repository
RepositoryRelation.name
RepositoryRelation.target_repository
RepositoryRelation.DoesNotExist
RepositoryRelation.MultipleObjectsReturned
RepositoryRelation.get_name_display()
RepositoryRelation.id
RepositoryRelation.objects
RepositoryRelation.repository_id
RepositoryRelation.target_repository_id
ContributorName
ContributorName.contributor_email
ContributorName.name
ContributorName.email
ContributorName.to_dict()
ContributorName.DoesNotExist
ContributorName.MultipleObjectsReturned
ContributorName.contributor_email_id
ContributorName.id
ContributorName.objects
ContributorName.signed_news_set
ContributorName.source_package
ContributorName.source_packages_uploads_set
SourcePackage
SourcePackage.id
SourcePackage.source_package_name
SourcePackage.version
SourcePackage.standards_version
SourcePackage.architectures
SourcePackage.binary_packages
SourcePackage.maintainer
SourcePackage.uploaders
SourcePackage.dsc_file_name
SourcePackage.directory
SourcePackage.homepage
SourcePackage.vcs
SourcePackage.name
SourcePackage.main_entry
SourcePackage.get_changelog_entry()
SourcePackage.update()
SourcePackage.DoesNotExist
SourcePackage.MultipleObjectsReturned
SourcePackage.binarypackage_set
SourcePackage.extracted_source_files
SourcePackage.maintainer_id
SourcePackage.objects
SourcePackage.repository_entries
SourcePackage.repository_set
SourcePackage.source_package_name_id
BinaryPackage
BinaryPackage.id
BinaryPackage.binary_package_name
BinaryPackage.version
BinaryPackage.source_package
BinaryPackage.short_description
BinaryPackage.long_description
BinaryPackage.update()
BinaryPackage.name
BinaryPackage.DoesNotExist
BinaryPackage.MultipleObjectsReturned
BinaryPackage.binary_package_name_id
BinaryPackage.objects
BinaryPackage.repository_entries
BinaryPackage.source_package_id
BinaryPackageRepositoryEntryManager
BinaryPackageRepositoryEntry
BinaryPackageRepositoryEntry.id
BinaryPackageRepositoryEntry.binary_package
BinaryPackageRepositoryEntry.repository
BinaryPackageRepositoryEntry.architecture
BinaryPackageRepositoryEntry.priority
BinaryPackageRepositoryEntry.section
BinaryPackageRepositoryEntry.objects
BinaryPackageRepositoryEntry.name
BinaryPackageRepositoryEntry.version
BinaryPackageRepositoryEntry.DoesNotExist
BinaryPackageRepositoryEntry.MultipleObjectsReturned
BinaryPackageRepositoryEntry.architecture_id
BinaryPackageRepositoryEntry.binary_package_id
BinaryPackageRepositoryEntry.repository_id
SourcePackageRepositoryEntryManager
SourcePackageRepositoryEntry
SourcePackageRepositoryEntry.id
SourcePackageRepositoryEntry.source_package
SourcePackageRepositoryEntry.repository
SourcePackageRepositoryEntry.component
SourcePackageRepositoryEntry.objects
SourcePackageRepositoryEntry.dsc_file_url
SourcePackageRepositoryEntry.directory_url
SourcePackageRepositoryEntry.name
SourcePackageRepositoryEntry.version
SourcePackageRepositoryEntry.DoesNotExist
SourcePackageRepositoryEntry.MultipleObjectsReturned
SourcePackageRepositoryEntry.repository_id
SourcePackageRepositoryEntry.source_package_id
ExtractedSourceFile
ExtractedSourceFile.id
ExtractedSourceFile.source_package
ExtractedSourceFile.extracted_file
ExtractedSourceFile.name
ExtractedSourceFile.date_extracted
ExtractedSourceFile.DoesNotExist
ExtractedSourceFile.MultipleObjectsReturned
ExtractedSourceFile.get_next_by_date_extracted()
ExtractedSourceFile.get_previous_by_date_extracted()
ExtractedSourceFile.objects
ExtractedSourceFile.source_package_id
PackageData
MailingListManager
validate_archive_url_template()
MailingList
NewsManager
news_upload_path()
News
News.id
News.package
News.title
News.content_type
News.news_file
News.created_by
News.datetime_created
News.signed_by
News.objects
News.content
News.save()
News.get_signed_content()
News.get_absolute_url()
News.DoesNotExist
News.MultipleObjectsReturned
News.get_next_by_datetime_created()
News.get_previous_by_datetime_created()
News.package_id
EmailNewsManager
EmailNews
NewsRenderer
PlainTextNewsRenderer
HtmlNewsRenderer
EmailNewsRenderer
PackageBugStats
BinaryPackageBugStats
ActionItemTypeManager
ActionItemType
ActionItemManager
ActionItem
ActionItem.SEVERITY_WISHLIST
ActionItem.SEVERITY_LOW
ActionItem.SEVERITY_NORMAL
ActionItem.SEVERITY_HIGH
ActionItem.SEVERITY_CRITICAL
ActionItem.SEVERITIES
ActionItem.id
ActionItem.package
ActionItem.item_type
ActionItem.short_description
ActionItem.severity
ActionItem.created_timestamp
ActionItem.last_updated_timestamp
ActionItem.extra_data
ActionItem.objects
ActionItem.get_absolute_url()
ActionItem.type_name
ActionItem.full_description_template
ActionItem.full_description
ActionItem.to_dict()
ActionItem.DoesNotExist
ActionItem.MultipleObjectsReturned
ActionItem.get_next_by_created_timestamp()
ActionItem.get_next_by_last_updated_timestamp()
ActionItem.get_previous_by_created_timestamp()
ActionItem.get_previous_by_last_updated_timestamp()
ActionItem.get_severity_display()
ActionItem.item_type_id
ActionItem.package_id
ConfirmationException
ConfirmationManager
Confirmation
SourcePackageDeps
SourcePackageDeps.id
SourcePackageDeps.source
SourcePackageDeps.dependency
SourcePackageDeps.repository
SourcePackageDeps.build_dep
SourcePackageDeps.binary_dep
SourcePackageDeps.details
SourcePackageDeps.DoesNotExist
SourcePackageDeps.MultipleObjectsReturned
SourcePackageDeps.dependency_id
SourcePackageDeps.objects
SourcePackageDeps.repository_id
SourcePackageDeps.source_id
TeamManager
Team
Team.name
Team.slug
Team.maintainer_email
Team.description
Team.url
Team.public
Team.owner
Team.packages
Team.members
Team.objects
Team.get_absolute_url()
Team.add_members()
Team.remove_members()
Team.user_is_member()
Team.DoesNotExist
Team.MultipleObjectsReturned
Team.id
Team.maintainer_email_id
Team.owner_id
Team.team_membership_set
TeamMembership
TeamMembership.user_email
TeamMembership.team
TeamMembership.muted
TeamMembership.default_keywords
TeamMembership.has_membership_keywords
TeamMembership.is_muted()
TeamMembership.set_mute_package()
TeamMembership.mute_package()
TeamMembership.unmute_package()
TeamMembership.set_keywords()
TeamMembership.set_membership_keywords()
TeamMembership.get_membership_keywords()
TeamMembership.get_keywords()
TeamMembership.DoesNotExist
TeamMembership.MultipleObjectsReturned
TeamMembership.id
TeamMembership.membership_package_specifics
TeamMembership.membershipconfirmation_set
TeamMembership.objects
TeamMembership.team_id
TeamMembership.user_email_id
MembershipPackageSpecifics
MembershipPackageSpecifics.membership
MembershipPackageSpecifics.package_name
MembershipPackageSpecifics.keywords
MembershipPackageSpecifics.muted
MembershipPackageSpecifics.set_keywords()
MembershipPackageSpecifics.DoesNotExist
MembershipPackageSpecifics.MultipleObjectsReturned
MembershipPackageSpecifics.id
MembershipPackageSpecifics.membership_id
MembershipPackageSpecifics.objects
MembershipPackageSpecifics.package_name_id
MembershipConfirmation
MembershipConfirmation.membership
MembershipConfirmation.DoesNotExist
MembershipConfirmation.MultipleObjectsReturned
MembershipConfirmation.confirmation_key
MembershipConfirmation.date_created
MembershipConfirmation.get_next_by_date_created()
MembershipConfirmation.get_previous_by_date_created()
MembershipConfirmation.id
MembershipConfirmation.membership_id
BugDisplayManager
BugDisplayManagerMixin
TaskData
TaskData.task_name
TaskData.task_is_pending
TaskData.run_lock
TaskData.last_attempted_run
TaskData.last_completed_run
TaskData.data
TaskData.data_checksum
TaskData.version
TaskData.save()
TaskData.versioned_update()
TaskData.get_run_lock()
TaskData.extend_run_lock()
TaskData.DoesNotExist
TaskData.MultipleObjectsReturned
TaskData.id
TaskData.objects
- distro_tracker.core.tasks
- distro_tracker.core.templatetags.distro_tracker_extras
- distro_tracker.core.utils
- distro_tracker.core.utils
- distro_tracker.core.utils.compression
- distro_tracker.core.utils.email_messages
- distro_tracker.core.utils.http
- distro_tracker.core.utils.linkify
- distro_tracker.core.utils.misc
- distro_tracker.core.utils.packages
package_hashdir()
package_url()
extract_vcs_information()
extract_dsc_file_name()
extract_information_from_sources_entry()
extract_information_from_packages_entry()
SourcePackageRetrieveError
AptCache
AptCache.DEFAULT_MAX_SIZE
AptCache.QUILT_FORMAT
AptCache.AcquireProgress
AptCache.source_cache_directory
AptCache.cache_size
AptCache.get_directory_size()
AptCache.clear_cache()
AptCache.update_sources_list()
AptCache.update_apt_conf()
AptCache.configure_cache()
AptCache.get_cached_files()
AptCache.get_sources_files_for_repository()
AptCache.get_packages_files_for_repository()
AptCache.update_repositories()
AptCache.get_package_source_cache_directory()
AptCache.get_source_version_cache_directory()
AptCache.clear_cached_sources()
AptCache.retrieve_source()
html_package_list()
- distro_tracker.core.utils.plugins
- distro_tracker.core.utils.urls
- distro_tracker.core.utils.verp
- distro_tracker.core.models
- Extendable parts of the web interface
- distro_tracker.core.panels
BasePanel
get_panels_for_package()
GeneralInformationPanel
VersionsInformationPanel
VersionedLinks
DscLinkProvider
BinariesInformationPanel
PanelItem
TemplatePanelItem
HtmlPanelItem
PanelItemProvider
ListPanelMeta
ListPanel
LinksPanel
GeneralInfoLinkPanelItems
NewsPanel
BugsPanel
ActionNeededPanel
DeadPackageWarningPanel
- distro_tracker.core.package_tables
BaseTableField
GeneralInformationTableField
VcsTableField
ArchiveTableField
BugStatsTableField
BasePackageTable
BasePackageTable.slug
BasePackageTable.context()
BasePackageTable.default_title
BasePackageTable.title
BasePackageTable.relative_url
BasePackageTable.packages_with_prefetch_related
BasePackageTable.packages
BasePackageTable.column_names
BasePackageTable.default_fields
BasePackageTable.table_fields
BasePackageTable.rows
BasePackageTable.number_of_packages
BasePackageTable.get_template_content()
BasePackageTable.get_row_template()
BasePackageTable.plugins
BasePackageTable.unregister_plugin()
create_table()
GeneralTeamPackageTable
- distro_tracker.core.panels
- Web interface implementation
- distro_tracker.core.admin
validate_sources_list_entry()
RepositoryAdminForm
RepositoryAdmin
RepositoryAdmin.Media
RepositoryAdmin.form
RepositoryAdmin.fieldsets
RepositoryAdmin.list_display
RepositoryAdmin.ordering
RepositoryAdmin.list_editable
RepositoryAdmin.save_model()
RepositoryAdmin.components_string()
RepositoryAdmin.architectures_string()
RepositoryAdmin.flags_string()
RepositoryAdmin.media
RepositoryRelationAdmin
- distro_tracker.core.context_processors
- distro_tracker.core.forms
- distro_tracker.core.news_feed
- distro_tracker.core.views
package_page()
package_page_redirect()
legacy_package_url_redirect()
PackageSearchView
OpenSearchDescription
PackageAutocompleteView
news_page()
PackageNews
ActionItemJsonView
ActionItemView
legacy_rss_redirect()
KeywordsView
CreateTeamView
TeamDetailsView
DeleteTeamView
UpdateTeamView
AddPackageToTeamView
RemovePackageFromTeamView
JoinTeamView
LeaveTeamView
ManageTeam
RemoveTeamMember
AddTeamMember
ConfirmMembershipView
TeamListView
SetMuteTeamView
SetMembershipKeywords
EditMembershipView
TeamAutocompleteView
TeamSearchView
TeamPackagesTableView
IndexView
- distro_tracker.core.admin
- Core internal API
- distro_tracker.html
- distro_tracker.mail
- distro_tracker.mail.control
- distro_tracker.mail.dispatch
SkipMessage
process()
forward()
process_for_team()
forward_to_team()
classify_message()
approved_default()
add_new_headers()
add_direct_subscription_headers()
add_team_membership_headers()
send_to_teams()
send_to_team()
send_to_subscribers()
send_messages()
prepare_message()
bounce_is_for_spam()
handle_bounces()
- distro_tracker.mail.mail_news
- distro_tracker.mail.models
CommandConfirmationManager
CommandConfirmation
CommandConfirmation.commands
CommandConfirmation.objects
CommandConfirmation.command_list
CommandConfirmation.DoesNotExist
CommandConfirmation.MultipleObjectsReturned
CommandConfirmation.confirmation_key
CommandConfirmation.date_created
CommandConfirmation.get_next_by_date_created()
CommandConfirmation.get_previous_by_date_created()
CommandConfirmation.id
UserEmailBounceStatsManager
UserEmailBounceStats
BounceStats
- distro_tracker.mail.processor
MailProcessorException
ConflictingDeliveryAddresses
MissingDeliveryAddress
InvalidDeliveryAddress
MailProcessor
MailProcessor.load_mail_from_file()
MailProcessor.find_delivery_address()
MailProcessor.identify_service()
MailProcessor.do_nothing()
MailProcessor.process()
MailProcessor.build_delivery_address()
MailProcessor.handle_control()
MailProcessor.handle_bounces()
MailProcessor.handle_dispatch()
MailProcessor.handle_team()
run_mail_processor()
MailQueue
MailQueue.MAX_WORKERS
MailQueue.SLEEP_TIMEOUT_EMPTY
MailQueue.SLEEP_TIMEOUT_TASK_RUNNING
MailQueue.SLEEP_TIMEOUT_TASK_FINISHED
MailQueue.SLEEP_TIMEOUT_TASK_RUNNABLE
MailQueue.add()
MailQueue.remove()
MailQueue.initialize()
MailQueue.pool
MailQueue.close_pool()
MailQueue.process_queue()
MailQueue.sleep_timeout()
MailQueue.process_loop()
MailQueueEntry
MailQueueWatcher
- distro_tracker.project
- distro_tracker.settings
- distro_tracker.settings.defaults
DISTRO_TRACKER_TRUSTED_GPG_MAIN_FILE
DISTRO_TRACKER_TRUSTED_GPG_PARTS_DIR
DISTRO_TRACKER_MAX_DAYS_TOLERATE_BOUNCE
DISTRO_TRACKER_MAX_ALLOWED_ERRORS_CONTROL_COMMANDS
DISTRO_TRACKER_CONFIRMATION_EXPIRATION_DAYS
DISTRO_TRACKER_NEWS_PANEL_LIMIT
DISTRO_TRACKER_RSS_ITEM_LIMIT
DISTRO_TRACKER_EMAIL_NEWS_HEADERS
DISTRO_TRACKER_APT_CACHE_MAX_SIZE
DISTRO_TRACKER_CA_BUNDLE
DISTRO_TRACKER_ACCEPT_UNQUALIFIED_EMAILS
DJANGO_EMAIL_ACCOUNTS_USE_CAPTCHA
compute_default_settings()
GET_INSTANCE_NAME()
- distro_tracker.settings.local
- distro_tracker.settings.production
- distro_tracker.settings.development
- distro_tracker.settings.test
- distro_tracker.test
- distro_tracker.vendor
call()
- Sample skeleton vendor
classify_message()
add_new_headers()
approve_default_message()
get_pseudo_package_list()
get_package_information_site_url()
get_developer_information_url()
get_external_version_information_urls()
get_maintainer_extra()
get_uploader_extra()
allow_package()
get_extra_versions()
get_table_fields()
additional_prefetch_related_lookups()
get_vcs_data()
get_bug_display_manager_class()
get_tables_for_team_page()
- Existing vendors
- distro_tracker.vendor.debian
- distro_tracker.vendor.kali