Network

Todo

Docstrings (module, models)

Models

class indico.modules.networks.models.networks.IPNetwork(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Model

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

group
group_id
network
class indico.modules.networks.models.networks.IPNetworkGroup(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Model

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

attachment_access_override

Grants all IPs in the network group read access to all attachments

contains_ip(ip)
description
hidden

Whether the network group is hidden in ACL forms

id
is_category_role = False
is_event_role = False
is_group = False
is_network = True
is_registration_form = False
is_single_person = False
locator
name
networks

A descriptor that presents a read/write view of an object attribute.

principal_order = 1
principal_type = 5

Utilities

indico.modules.networks.util.serialize_ip_network_group(group)

Serialize group to JSON-like object.