Track
Todo
Docstring (module, models, operations)
Models
- class indico.modules.events.tracks.models.tracks.Track(**kwargs)
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.
- access_key = None
- acl_entries
- can_convene(user)
- can_delete(user)
- can_review_abstracts(user)
- code
- default_render_mode = 2
- default_session
- default_session_id
- disable_protection_mode = True
Whether the object protection mode is disabled
- event
- event_id
- property full_title
- property full_title_with_group
- id
- is_track_group = False
- locator
Define a smart locator property.
This behaves pretty much like a normal read-only property and the decorated function should return a dict containing the necessary data to build a URL for the object.
This decorator should usually be applied to a method named
locator
as this name is required for get_locator to find it automatically when just passing the object.If you need more than one locator, you can define it like this:
@locator_property def locator(self): return {...} @locator.other def locator(self): return {...}
The
other
locator can then be accessed by passingobj.locator.other
to the code expecting an object with a locator.
- own_no_access_contact = None
- position
- possible_render_modes = {RenderMode.markdown}
- protection_mode = None
- render_mode = 2
- property short_title
- property short_title_with_group
- speakers_can_access = None
- title
- property title_with_group
- track_group
- track_group_id
- indico.modules.events.tracks.models.tracks.get_next_position(context)
- class indico.modules.events.tracks.models.principals.TrackPrincipal(**kwargs)
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.
- allow_category_roles = True
Whether it should be allowed to add a category role
- allow_event_roles = True
Whether it should be allowed to add an event role.
- category_role
- category_role_id
- email = None
- event_role
- event_role_id
- full_access
- id
- ip_network_group = None
- ip_network_group_id = None
- local_group_id
- multipass_group_name
- multipass_group_provider
- permissions
- principal_backref_name = 'in_track_acls'
The name of the backref added to User and LocalGroup. For consistency, it is recommended to name the backref
in_foo_acl
with foo describing the ACL where this mixin is used.
- principal_for = 'Track'
The model for which we are a principal. May also be a string containing the model’s class name.
- read_access
- registration_form = None
- registration_form_id = None
- track_id
- type
- unique_columns = ('track_id',)
The columns which should be included in the unique constraints. If set to
None
, no unique constraints will be added.
- user_id
Operations
- indico.modules.events.tracks.operations.create_track(event, data)
- indico.modules.events.tracks.operations.create_track_group(event, data)
- indico.modules.events.tracks.operations.delete_track(track)
- indico.modules.events.tracks.operations.delete_track_group(track_group)
- indico.modules.events.tracks.operations.update_program(event, data)
- indico.modules.events.tracks.operations.update_track(track, data)
- indico.modules.events.tracks.operations.update_track_group(track_group, data)