gws.base.action.core

Base action object.

Source code: gws.base.action.core

Module Contents

class gws.base.action.core.Config(*args, **kwargs)

Bases: gws.ConfigWithAccess

Basic config with permissions.

class gws.base.action.core.Object

Bases: gws.Action

Base action object, the parent of all action objects.

An action groups server commands, which subclasses implement as methods decorated with gws.ext.command.*. The base class provides the action props, which contain only the action type.

props(user)

Generate a Props struct for this object.

Do not call this method directly, use gws.props_of instead, which also checks permissions.

Parameters:

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

Returns:

A Props object or a dict. Nested objects are converted to props as well.

class gws.base.action.core.Props(*args, **kwargs)

Bases: gws.Props

Object properties.

type: str