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
Select users with their last membership of a user in the member group.
a select statement with columns user_id, mem_id, mem_end.
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.
Get all members whose year(end of last membership) + 1 + years_following_eom <= current year.
legal grounds:
The following data can be collected and processed until the end of the next calendar year after membership ends: […]
—Privacy policy §2
a tuple of statement and the last_mem CTE which can be reused for late injection of an order_by.
Get all members whose year(end of last membership) + 1 + years_following_eom <= current year.
legal grounds:
The following data can be collected and processed until the end of the next calendar year after membership ends: […]
—Privacy policy §2
a tuple of statement and the last_mem CTE which can be reused for late injection of an order_by.
Users whose mails can be scrubbed
Definition:
Other e-mail addresses you provide, which are used for contacting you.
—Privacy policy §2.6
a tuple of statement and the last_mem CTE which can be reused for late injection of an order_by.
All the hosts we can delete.
Deleting them will delete interfaces and assigned IPs by cascade.
Definition:
Your MAC and IP addresses, which are required to access the student network.
—Privacy policy §2.8
All the users whose date of birth we can delete.
Definition:
Your date of birth, which is required based on TKG §172.
—Privacy policy §2.9
All the users whose swdd_person_id (“Debitorennummer”) we can delete
If available, your “Debitorennummer” of the Studentenwerk Dresden to get information about the rental object (room) and the rental period
—Privacy policy §2.10
All the room history entries we can delete
Past residences in dormitories we are operating in to correctly book membership fees.
– Privacy policy §2.11