OptionalmobileOptionalpluginOptionalpushOptionalqueriesOptionalroutesOptionalsendOptionalwaitingEvaluates expressions and {{ }} interpolations, holding the eval_context
and a cache of compiled expressions. Built on first use and discarded by
invalidate_evaluator() whenever the eval_context changes.
Get type names
Checks plugin authorize_api hooks, for plugin-registered routes with
no dedicated model (view/page/trigger) to hang an authorize() method
off of. Combine with the caller's own role check.
Checks plugin authorize_page hooks.
Checks plugin authorize_trigger hooks.
Checks plugin authorize_view hooks.
Delete config parameter by key
key of parameter
Deliver a node-handle message on this node/worker. Called from the cross-node/cross-worker message dispatcher (see serve.js).
Optionalpayload: anyFor collaborative editing
the source view name, used to scope the collab room
OptionalnoMultiNodePropagate: booleanif true, do not propagate to other nodes in multi-node setup
For dynamic updates triggered from a run_js_code action
OptionaluserIds: number[] | nullarray of user IDs to target specific users, null to broadcast to public (unauthenticated) users only, undefined to broadcast to authenticated users only
OptionalnoMultiNodePropagate: booleanif true, do not propagate to other nodes in multi-node setup
emit a log message for the log viewer
OptionalnoMultiNodePropagate: booleanif true, do not propagate to other nodes in multi-node setup
Send a backup-restore progress update to whoever is watching a restore job. Not persisted anywhere - if no client is currently connected to the job's room, the message is simply dropped.
OptionalnoMultiNodePropagate: booleanif true, do not propagate to other nodes in multi-node setup
Send a message to a room
FunctionGet all config variables list If variable is not defined that default value is used
Get config parameter by key
key of config paramter
Optionaldef: anydefault value
Get copy of config parameter (which can be safely mutated)
key of parameter
Optionaldef: anydefault value
Get Layout by user Based on role of user
Optionaluser: AbstractUser | User | UserLikeOptionaluser: AbstractUserCollect translatable strings from configuration
Drop the evaluator so the next use rebuilds it against the current eval_context. Invalidating rather than rebuilding here keeps a burst of registerPlugin() calls at startup to a single rebuild.
Returns true if key is defined in fixed_configuration for tenant
Returns true if key is defined in fixed_configuration for tenant
Logging to console
Refresh State cache for all Saltcorn main objects
OptionalnoSignal: booleanDo not signal - refresh to other cluster processes.
OptionalkeepUnchanged: booleanSome members don't need rebuilding if they did not change
Take the config 'function_code_pages' and build the 'codepage_context' member
OptionalnoSignal: booleanDo not signal reload to other cluster processes.
OptionalkeepUnchanged: booleanWhen 'function_code_pages' didn't change, true skips building it again
Refresh config
OptionalnoSignal: booleanDo not signal refresh to other cluster processes.
Set a config value that will not persist into the db
config key
config val
Refresh i18n Internationalization
OptionalnoSignal: booleanOptionalnoSignal: booleanRefresh pages
OptionalnoSignal: booleanDo not signal refresh to other cluster processes.
Reload plugins
OptionalnoSignal: booleanDo not signal reload to other cluster processes.
OptionalnoSignal: booleanRefresh tables list and table definitions (including fields) in State
OptionalnoSignal: booleanDo not signal refresh to other cluster processes.
Refresh triggers
OptionalnoSignal: booleanDo not signal refresh to other cluster processes.
OptionalnoSignal: booleanRefresh views
OptionalnoSignal: booleanDo not signal refresh to other cluster processes.
Registers a callback so a message sent to this id (from any node) reaches this operation. Call the returned function when done.
unique id for this operation
called when a message for this id arrives
unregister function
Remove plugin
OptionalnoSignal: booleanDo not signal removal to other cluster processes.
Broadcast a message to whichever node/worker has a handler registered for id (see registerNodeHandle). A no-op wherever nothing is registered.
Optionalpayload: anyFunction to emit collaborative editing messages
Set value of config parameter
key of parameter
value of parameter
Function to emit dynamic update messages triggered from run_js_code actions
Function to emit backup-restore progress messages
Set the function which will be called when a message enters a room
State Class