org.models.clipboard

Classes

Clipboard

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

Module Contents

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.

request[source]
token[source]
property 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) Self[source]
classmethod from_session(request: onegov.org.request.OrgRequest) Self[source]