gws.plugin.model_value.current_user

Current user.

Formats properties of the current user and returns them as a string.

If format is configured, it must be a Python format string with a reference to the user param, e.g. "{user.displayName}_{user.isGuest}".

If no format is configured, user’s loginName is returned.

Source code: gws.plugin.model_value.current_user

Package Contents

class gws.plugin.model_value.current_user.Config(*args, **kwargs)

Bases: gws.base.model.value.Config

Object configuration.

format: str = ''

format string

class gws.plugin.model_value.current_user.Object

Bases: gws.base.model.value.Object

Model value.

format: str
configure()

Configuration hook.

compute(field, feature, mc)