mini_buildd.models.repository module¶
- class mini_buildd.models.repository.EmailAddress(extra_options, pickled_data, address, name)¶
Bases:
Model
- address¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- daemon_set¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- objects = <django.db.models.manager.Manager object>¶
- repository_set¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- class mini_buildd.models.repository.Repository(extra_options, pickled_data, status, last_checked, auto_reactivate, identity, layout, allow_unauthenticated_uploads, extra_uploader_keyrings, notify_changed_by, notify_maintainer, reprepro_morguedir, external_home_url)¶
Bases:
StatusModel
- identity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- layout¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- distributions¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- allow_unauthenticated_uploads¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- extra_uploader_keyrings¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- notify¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- notify_changed_by¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- notify_maintainer¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reprepro_morguedir¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- external_home_url¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- LETHAL_DEPENDENCIES = False¶
- class Admin(*args, **kwargs)¶
Bases:
Admin
- readonly_fields = []¶
- filter_horizontal = ('distributions', 'notify')¶
- get_readonly_fields(_request, obj=None)¶
Forbid change identity on existing repository.
- mbd_model¶
alias of
Repository
- property media¶
- mbd_json()¶
- clean(*args, **kwargs)¶
Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.
- mbd_get_diststr(distribution, suite, rollback=None)¶
- mbd_get_diststrs(frollbacks=None, **suiteoption_filter)¶
List of all distribution strings (except rollbacks) in this repo, optionally matching a suite options filter (unstable, experimental,…)
- mbd_get_meta_distributions(distribution, suite_option)¶
- mbd_get_apt_pin(distribution, suite)¶
- mbd_get_apt_preferences(distribution, suite, prio=1)¶
- classmethod mbd_get_apt_keys(distribution)¶
- mbd_get_internal_suite_dependencies(suite_option)¶
- mbd_get_mandatory_version_regex(distribution, suite_option)¶
- mbd_get_default_version(distribution, suite_option)¶
- mbd_get_apt_line(distribution, suite_option, rollback=None, snapshot=None)¶
- mbd_get_apt_build_sources_list(distribution, suite_option)¶
- mbd_get_apt_build_preferences(distribution, suite_option, internal_apt_priority_override=None)¶
- mbd_reprepro_update_config()¶
- mbd_dsc_pool_path(source, version, raise_exception=True)¶
Get DSC pool path of an installed source (
<repo>/pool/...
).
- mbd_package_migrate(package, distribution, suite, full=False, rollback=None, version=None)¶
- mbd_package_remove(package, distribution, suite, rollback=None, version=None, without_rollback=False)¶
- mbd_package_precheck(distribution, suite_option, package, version)¶
- mbd_package_install(distribution, suite_option, changes, buildresults)¶
Install a dict arch:buildresult of successful build results.
- mbd_sorted_distributions()¶
- mbd_icodenames()¶
- mbd_prepare()¶
Idempotent repository preparation. This may be used as-is as mbd_sync.
- mbd_sync()¶
- mbd_remove()¶
- mbd_check()¶
- mbd_get_dependencies()¶
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- get_next_by_last_checked(*, field=<django.db.models.fields.DateTimeField: last_checked>, is_next=True, **kwargs)¶
- get_previous_by_last_checked(*, field=<django.db.models.fields.DateTimeField: last_checked>, is_next=False, **kwargs)¶
- get_status_display(*, field=<django.db.models.fields.IntegerField: status>)¶
- layout_id¶
- objects = <django.db.models.manager.Manager object>¶
- uploader_set¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- mini_buildd.models.repository.get_meta_distribution_map()¶
Get a dict of the meta distributions: meta -> actual.
- mini_buildd.models.repository.map_distribution(diststr)¶
Map incoming distribution to internal.
- mini_buildd.models.repository.get(identity)¶
Get repository object with user error handling.
- mini_buildd.models.repository.parse_dist(dist, check_uploadable=False)¶
- mini_buildd.models.repository.parse_diststr(diststr, check_uploadable=False)¶