Person

Todo

Docstrings (module, operations)

Operations

indico.modules.events.persons.operations.update_person(person, data)

Placeholders

class indico.modules.events.persons.placeholders.ContributionsPlaceholder

Bases: indico.util.placeholders.ParametrizedPlaceholder

classmethod iter_param_info(person, event, **kwargs)

Yield information for known params.

Each item yielded must be a (value, description) tuple.

Parameters:kwargs – arguments specific to the placeholder’s context
name = 'contributions'
param_required = False
param_restricted = True
classmethod render(param, person, event, **kwargs)

Convert the placeholder to a string.

When a placeholder contains HTML that should not be escaped, the returned value should be returned as a markupsafe.Markup instance instead of a plain string.

Subclasses are encouraged to explicitly specify the arguments they expect instead of using **kwargs.

Parameters:kwargs – arguments specific to the placeholder’s context
class indico.modules.events.persons.placeholders.EmailPlaceholder

Bases: indico.util.placeholders.Placeholder

description = l'Email of the person'
name = 'email'
classmethod render(person, event, **kwargs)

Convert the placeholder to a string.

When a placeholder contains HTML that should not be escaped, the returned value should be returned as a markupsafe.Markup instance instead of a plain string.

Subclasses are encouraged to explicitly specify the arguments they expect instead of using **kwargs.

Parameters:kwargs – arguments specific to the placeholder’s context
class indico.modules.events.persons.placeholders.EventLinkPlaceholder

Bases: indico.util.placeholders.Placeholder

description = l'Link to the event'
name = 'event_link'
classmethod render(person, event, **kwargs)

Convert the placeholder to a string.

When a placeholder contains HTML that should not be escaped, the returned value should be returned as a markupsafe.Markup instance instead of a plain string.

Subclasses are encouraged to explicitly specify the arguments they expect instead of using **kwargs.

Parameters:kwargs – arguments specific to the placeholder’s context
class indico.modules.events.persons.placeholders.EventTitlePlaceholder

Bases: indico.util.placeholders.Placeholder

description = l'The title of the event'
name = 'event_title'
classmethod render(person, event, **kwargs)

Convert the placeholder to a string.

When a placeholder contains HTML that should not be escaped, the returned value should be returned as a markupsafe.Markup instance instead of a plain string.

Subclasses are encouraged to explicitly specify the arguments they expect instead of using **kwargs.

Parameters:kwargs – arguments specific to the placeholder’s context
class indico.modules.events.persons.placeholders.FirstNamePlaceholder

Bases: indico.util.placeholders.Placeholder

description = l'First name of the person'
name = 'first_name'
classmethod render(person, event, **kwargs)

Convert the placeholder to a string.

When a placeholder contains HTML that should not be escaped, the returned value should be returned as a markupsafe.Markup instance instead of a plain string.

Subclasses are encouraged to explicitly specify the arguments they expect instead of using **kwargs.

Parameters:kwargs – arguments specific to the placeholder’s context
class indico.modules.events.persons.placeholders.LastNamePlaceholder

Bases: indico.util.placeholders.Placeholder

description = l'Last name of the person'
name = 'last_name'
classmethod render(person, event, **kwargs)

Convert the placeholder to a string.

When a placeholder contains HTML that should not be escaped, the returned value should be returned as a markupsafe.Markup instance instead of a plain string.

Subclasses are encouraged to explicitly specify the arguments they expect instead of using **kwargs.

Parameters:kwargs – arguments specific to the placeholder’s context
class indico.modules.events.persons.placeholders.RegisterLinkPlaceholder

Bases: indico.util.placeholders.Placeholder

description = l'The link for the registration page'
name = 'register_link'
classmethod render(person, event, **kwargs)

Convert the placeholder to a string.

When a placeholder contains HTML that should not be escaped, the returned value should be returned as a markupsafe.Markup instance instead of a plain string.

Subclasses are encouraged to explicitly specify the arguments they expect instead of using **kwargs.

Parameters:kwargs – arguments specific to the placeholder’s context