# Track¶

Todo

Docstring (module, models, operations)

## Models¶

class indico.modules.events.tracks.models.tracks.Track(**kwargs)

Bases: indico.core.db.sqlalchemy.descriptions.DescriptionMixin, 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.

abstract_reviewers
can_convene(user)
can_delete(user)
can_review_abstracts(user)
code
conveners
default_render_mode = 2
default_session
default_session_id
event
event_id
full_title
id
locator

Defines 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 passing obj.locator.other to the code expecting an object with a locator.

position
possible_render_modes = set([<RenderMode.markdown: 2>])
render_mode = 2
short_title
title

## Operations¶

indico.modules.events.tracks.operations.create_track(event, data)
indico.modules.events.tracks.operations.delete_track(track)
indico.modules.events.tracks.operations.update_program(event, data)
indico.modules.events.tracks.operations.update_track(track, data)