web.tables.emailcorrespondent_tables.BaseCorrespondentEmailTable module

Module with the web.tables.BaseCorrespondentEmailTable table class.

class web.tables.emailcorrespondent_tables.BaseCorrespondentEmailTable.BaseCorrespondentEmailTable(data=None, order_by=None, orderable=None, empty_text=None, exclude=None, attrs=None, row_attrs=None, pinned_row_attrs=None, sequence=None, prefix=None, order_by_field=None, page_field=None, per_page_field=None, template_name=None, default=None, request=None, show_header=None, show_footer=True, extra_columns=None)[source]

Bases: Table

Table class for core.models.CorrespondentEmail.CorrespondentEmail.

class Meta[source]

Bases: object

Metadata class for the table.

model

alias of EmailCorrespondent

fields = ('mention', 'email__is_favorite', 'email__subject', 'email__datetime', 'email__mailbox', 'email__mailbox__account', 'email__x_spam_flag', 'email__datasize')
sequence = ('checkbox', 'mention', 'email__is_favorite', 'email__subject', 'email__datetime', 'email__mailbox', 'email__mailbox__account', 'email__x_spam_flag', 'email__datasize')
render_checkbox(record, column)[source]

Fixes the rendering of checkbox to use the email as record.

Return type:

str

Parameters:
render_email__is_favorite(record, column)[source]

Fixes the rendering of the favorite badge to use the email as record.

Return type:

str

Parameters:
_meta = <django_tables2.tables.TableOptions object>
base_columns = {'checkbox': <web.utils.columns.CheckboxColumn object>, 'email__datasize': <django_tables2.columns.base.Column object>, 'email__datetime': <django_tables2.columns.datetimecolumn.DateTimeColumn object>, 'email__is_favorite': <web.utils.columns.IsFavoriteColumn object>, 'email__mailbox': <django_tables2.columns.base.Column object>, 'email__mailbox__account': <django_tables2.columns.base.Column object>, 'email__subject': <django_tables2.columns.base.Column object>, 'email__x_spam_flag': <django_tables2.columns.booleancolumn.BooleanColumn object>, 'mention': <django_tables2.columns.base.Column object>}