Returns an existing address or creates a new one.
If the address is to be used for some other update operation, make sure to wrap this call and the next one in a Session.no_autoflush block, because else the address cleanup trigger may fire.
building_id¶ – Limit to rooms of the building. Returns a dict of overcrowded rooms with their inhabitants.
a dict mapping room ids to inhabitants
Return the most common address features of preexisting rooms in a certain building.
Determine building from shortname or id in this order.
Return all accounts which neither belong to a user nor are user assets
This method will change the mac address of the given interface to the new mac address.
Migrate a Host to a new room and if necessary to a new subnet. If the host changes subnet, it will get a new IP address.
Add suitable ips for every interface of a host
This method will create a new LogEntry.
This method will create a new TaskLogEntry.
This method will create a new UserLogEntry.
This method will create a new RoomLogEntry.
Send MIME text mails
Returns False, if sending fails. Else returns True.
mails¶ – A list of mails
Whether the transmission succeeded
config
This module contains functions concerning groups, membership, and property management.
Grants a property to a group.
Denies a property to a group.
Removes a property association (grant or denial) with a given group.
ValueError – if group doesn’t have a property with the given name
Makes a user member of a group in a given interval.
If the given interval overlaps with an existing membership, this method will join the overlapping intervals together, so that there will be at most one membership for particular user in particular group at any given point in time.
Remove a user from a group in a given interval.
The interval defaults to the unbounded interval, so that the user will be removed from the group at any point in time, removing all memberships in this group retroactively.
However, a common use case is terminating a membership by setting
during=starting_from(now)
.
modify the active_during field of a membership
Builds a hmac hash from the given parameters and searches for a match in the Tenancy view
This module contains functions concerning network traffic
This module contains methods concerning user archival and deletion.
Return all the users that qualify for being archived right now.
Selected are those users - whose last membership in the member_group ended two weeks in the past, - excluding users who currently have the do-not-archive property.
Get all memberships in to_be_archived of users who have an active do-not-archive property.
This can happen if archivability is detected, and later the user becomes a member again, or if for some reason the user shall not be archived.