gws.base.storage

Storage API.

Source code: gws.base.storage

Submodules

Package Contents

class gws.base.storage.Config(*args, **kwargs)

Bases: gws.ConfigWithAccess

Storage configuration

categoryName: str | None

category name

providerUid: str | None

storage provider uid

class gws.base.storage.Object

Bases: gws.Node

Configurable GWS object.

categoryName: str
storageProvider: gws.StorageProvider
configure()

Configuration hook.

configure_provider()
get_state_for(user)
handle_request(req: gws.WebRequester, p: Request) Response
props(user)

Generate a Props struct for this object.

Parameters:

user – The user for which the props should be generated.

class gws.base.storage.Props(*args, **kwargs)

Bases: gws.Props

Object properties.

state: State
class gws.base.storage.Request(*args, **kwargs)

Bases: gws.Request

Command request.

entryData: dict | None
entryName: str | None
verb: Verb
class gws.base.storage.Response(*args, **kwargs)

Bases: gws.Response

Command response.

data: dict | None
state: State