caosdb.common.administration module

missing docstring.

class caosdb.common.administration.PermissionRule(action, permission, priority=False)

Bases: object

Permission rules.

Parameters
  • action (str) – Either “grant” or “deny”

  • permission (str) – For example “RETRIEVE:*”.

  • priority (bool, optional) – Whether the priority shall be set, defaults is False.

caosdb.common.administration.get_server_properties()

get_server_properties.

Get all server properties as a dict.

Returns

The server properties.

Return type

dict

caosdb.common.administration.get_server_property(key)

get_server_property.

Get a server property.

Parameters

key (str) – The name of the server property

Returns

value – The string value of the server property.

Return type

str

Raises

KeyError – If the server property is no defined.

caosdb.common.administration.set_server_property(key, value)

set_server_property.

Set a server property.

Parameters
  • key (str) – The name of the server property.

  • value (str) – The value of the server property.

Returns

Return type

None