uw.local.grad.webui package

Submodules

uw.local.grad.webui.ajax module

uw.local.grad.webui.authority module

uw.local.grad.webui.coordinator module

uw.local.grad.webui.delegate module

uw.local.grad.webui.director module

uw.local.grad.webui.faculty module

uw.local.grad.webui.list module

uw.local.grad.webui.list_render module

Application list rendering.

Routines for formatting lists of applications as HTML tables. Provides column definitions for use with uw.web.html.format.make_table_format().

uw.local.grad.webui.list_render.abbreviate_citizenship_status(status)[source]

Abbreviate a citizenship status for convenient display.

Parameters:status – a citizenship status as provided in the data extracts.
Returns:an HTML fragment containing a possibly-abbreviated version of the status.

If the status is abbreviated, the result is an HTML span with the original status as a tooltip.

uw.local.grad.webui.list_render.attribute_citizenship_column(unitapp)[source]

Compute the HTML attributes for the citizenship column.

Parameters:unitapp – the candidate application.
Returns:a dictionary of HTML attribute values.

The only attribute returned is the sort value used for ordering when the column header is clicked.

uw.local.grad.webui.list_render.attribute_due_column(unitapp)[source]

Compute the basic HTML attributes for the due column.

Parameters:unitapp – the candidate application.
Returns:a dictionary of HTML attribute values.

The returned attributes are either a style attribute that sets the background, or none at all. The background colour is set to indicate an imminent or passed workflow deadline.

Also used for the status display on the individual application view.

uw.local.grad.webui.list_render.attribute_due_column_sort(unitapp)[source]

Compute the complete HTML attributes for the due column.

Parameters:unitapp – the candidate application.
Returns:a dictionary of HTML attribute values.

The returned attributes are those provided by attribute_due_column, with an additional attribute providing the sort value used for ordering when the column header is clicked.

uw.local.grad.webui.list_render.attribute_rating_column(unitapp)[source]

Compute the HTML attributes for the rating column.

Parameters:unitapp – the candidate application.
Returns:a dictionary of HTML attribute values.

The returned attributes always include the sort value used for ordering when the column header is clicked. Additionally, a style attribute to set the background colour will be provided if the rating has a colour.

uw.local.grad.webui.list_render.attribute_state_column(unitapp)[source]

Compute the HTML attributes for the state column.

Parameters:unitapp – the candidate application.
Returns:a dictionary of HTML attribute values.

The returned attributes are just a data-sort-value providing the sort value used for ordering when the column header is clicked.

uw.local.grad.webui.list_render.format_citizenship(unitapp)[source]

Compute the HTML cell contents for the citizenship column.

Parameters:unitapp – the candidate application.
Returns:a fragment of HTML suitable for inclusion in a table cell.
Return type:xsc.Frag

Includes a short version of the citizenship status as well as the country code (if any).

uw.local.grad.webui.list_render.format_status_column(unitapp)[source]

Compute the HTML cell contents for the status column.

Parameters:unitapp – the candidate application.
Returns:a fragment of HTML suitable for inclusion in a table cell.

Includes the status description, how many faculty have accepted/waitlisted, and the time until/since the current workflow deadline.

Actually used only for the status display on the individual application view, since the Status column has been split into two columns.

Compute a table column specification for linking to applications.

Parameters:
  • base_prefix – the base URL of the application (typically relative).
  • subpage – the subpage of the application to target.
  • confirm (bool) – whether to include the appl_id as a hidden field.
Returns:

A column specification suitable for use with uw.web.html.format.make_table_format().

The contents will be the UW ID as a link to the application.

uw.local.grad.webui.list_render.render_sort_table(table_columns, data, fixed=False)[source]

Render a table so that the columns can be sorted by clicking the header.

Parameters:
  • table_columns – column specifications for passing to uw.web.html.format.make_table_format().
  • data – the data for the rows of the table.
  • fixed – whether the table should include fixed col percentages

Formats the table using make_table_format and then alters the table to work with the sort table JavaScript module.

uw.local.grad.webui.roles module

uw.local.grad.webui.stats module

uw.local.grad.webui.util module

uw.local.grad.webui.view module

uw.local.grad.webui.view_accept module

uw.local.grad.webui.view_comments module

uw.local.grad.webui.view_compilation module

uw.local.grad.webui.view_contact module

uw.local.grad.webui.view_edit module

uw.local.grad.webui.view_history module

uw.local.grad.webui.view_main module

uw.local.grad.webui.view_offer module

uw.local.grad.webui.view_render module

uw.local.grad.webui.wsgifunc module

Module contents

Web UI implementation for Graduate Admissions.

This package implements the Web interface for the Graduate Admissions application. The overall URL structure is defined by wsgifunc.py.