swh.web.save_code_now.models module#

class swh.web.save_code_now.models.SaveAuthorizedOrigin(*args, **kwargs)[source]#

Bases: Model

Model table holding origin urls authorized to be loaded into the archive.

url#

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

id#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>#
class swh.web.save_code_now.models.SaveUnauthorizedOrigin(*args, **kwargs)[source]#

Bases: Model

Model table holding origin urls not authorized to be loaded into the archive.

url#

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

id#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>#
class swh.web.save_code_now.models.SaveOriginRequest(*args, **kwargs)[source]#

Bases: Model

Model table holding all the save origin requests issued by users.

id#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

request_date#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

visit_type#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

visit_status#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

origin_url#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

status#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

loading_task_id#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

visit_date#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

loading_task_status#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

user_ids#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

note#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

from_webhook#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

webhook_origin#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

snapshot_swhid#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

to_dict() SaveOriginRequestInfo[source]#

Map the request save model object to a json serializable dict.

Returns:

The corresponding SaveOriginRequetsInfo json serializable dict.

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

get_loading_task_status_display(*, field=<django.db.models.fields.TextField: loading_task_status>)#
get_next_by_request_date(*, field=<django.db.models.fields.DateTimeField: request_date>, is_next=True, **kwargs)#
get_previous_by_request_date(*, field=<django.db.models.fields.DateTimeField: request_date>, is_next=False, **kwargs)#
get_status_display(*, field=<django.db.models.fields.TextField: status>)#
get_visit_status_display(*, field=<django.db.models.fields.TextField: visit_status>)#
objects = <django.db.models.manager.Manager object>#