org.models.clipboard

Module Contents

Classes

Clipboard

The clipboard holds a url that should be copied and then pasted.

class org.models.clipboard.Clipboard(request: onegov.org.request.OrgRequest, token: str)[source]

The clipboard holds a url that should be copied and then pasted. The url is expected to be stored in a token that has been created by onegov.core.request.CoreRequest.new_url_safe_token().

The reason behind this is that the url is used to fetch the object behind the url in an unrestricted fashion.

url() str | None[source]
get_object() Any | None[source]
clear() None[source]
store_in_session() None[source]
classmethod from_url(request: onegov.org.request.OrgRequest, url: str) typing_extensions.Self[source]
classmethod from_session(request: onegov.org.request.OrgRequest) typing_extensions.Self[source]