Пример #1
0
class Overview(SuperOverview):
    columns = (
        GetterColumn(title="",
                     getter=getStateIcon,
                     cell_formatter=raw_cell_formatter),
        GetterColumn(title=_('Health'), getter=getHealth),
        IctGetterColumn(title=_('Title'),
                        getter=getTitle,
                        cell_formatter=link('overview.html')),
        IctGetterColumn(title=_('User'),
                        getter=getUserName,
                        cell_formatter=fsearch_user_formatter),
        IctGetterColumn(title=_('Room'),
                        getter=lambda i, f: i.room,
                        cell_formatter=link('details.html')),
        DateGetterColumn(title=_('Modified'),
                         getter=getModifiedDate,
                         subsort=True,
                         cell_formatter=raw_cell_formatter),
        GetterColumn(title=_('Actions'),
                     getter=getActionBottons,
                     cell_formatter=raw_cell_formatter),
    )
    pos_column_index = 1
    sort_columns = [1, 2, 3, 4, 5]
Пример #2
0
class Overview(SuperOverview):
    columns = (
        GetterColumn(title="",
                     getter=getStateIcon,
                     cell_formatter=raw_cell_formatter),
        IctGetterColumn(title=_('Title'),
                        getter=getTitle,
                        cell_formatter=link('overview.html')),
        IpGetterColumn(title=_('IP'),
                       getter=getIpAddr,
                       cell_formatter=link('overview.html')),
        IpGetterColumn(title=_('hostname'),
                       getter=getHostname,
                       cell_formatter=link('overview.html')),
        IctGetterColumn(title=_('User'),
                        getter=getUserName,
                        cell_formatter=fsearch_user_formatter),
        DateGetterColumn(title=_('Modified'),
                         getter=getModifiedDate,
                         subsort=True,
                         cell_formatter=raw_cell_formatter),
        GetterColumn(title=_('Actions'),
                     getter=getActionBottons,
                     cell_formatter=raw_cell_formatter),
    )
    pos_column_index = 1
    sort_columns = [1, 2, 3, 4]
Пример #3
0
class Overview(SuperOverview):
    columns = (
        GetterColumn(title="",
                     getter=getStateIcon,
                     cell_formatter=raw_cell_formatter),
        IctGetterColumn(title=_('Title'),
                        getter=getTitle,
                        cell_formatter=link('overview.html')),
        IctGetterColumn(title=_('Contract type')),
#                        getter=lambda i,f: i.type,
#                        cell_formatter=raw_cell_formatter),
        IctGetterColumn(title=_('expiration date'),
                        getter=lambda i,f: i.expirationDate,
                        cell_formatter=link('details.html')),
        IctGetterColumn(title=_('annual charges'),
                        getter=lambda i,f: i.annualCharges,
                        cell_formatter=link('details.html')),
        DateGetterColumn(title=_('Modified'),
                        getter=getModifiedDate,
                        subsort=True,
                        cell_formatter=raw_cell_formatter),
        GetterColumn(title=_('Actions'),
                     getter=getActionBottons,
                     cell_formatter=raw_cell_formatter),
        )
    pos_column_index = 1
    sort_columns = [1, 2, 3, 4, 5]
Пример #4
0
class Overview(SuperOverview):
    columns = (
        GetterColumn(title="",
                     getter=getStateIcon,
                     cell_formatter=raw_cell_formatter),
        GetterColumn(title=_('Health'), getter=getHealth),
        IctGetterColumn(title=_('Title'),
                        getter=getTitle,
                        cell_formatter=link('overview.html')),
        DateGetterColumn(title=_('Modified'),
                         getter=getModifiedDate,
                         subsort=True,
                         cell_formatter=raw_cell_formatter),
        GetterColumn(title=_('Actions'),
                     getter=getActionBottons,
                     cell_formatter=raw_cell_formatter),
    )
    pos_column_index = 1
    sort_columns = [1, 2, 3, 4, 5]