def page_enter(ctx, unit_id): cred = ctx.locals._credentials query = globals.db.query('units') query.where('unit_id = %s', unit_id) ctx.locals.unit = query.fetchone() unit_users = user_search.UserByUnitSearch(cred.prefs, unit_id) paged_search.push_pager(ctx, unit_users) ctx.add_session_vars('unit')
def page_enter(ctx, mode, assoc_ids): ctx.locals.assoc_mode = mode prefs = ctx.locals._credentials.prefs case_id = ctx.locals.case.case_row.case_id ctx.locals.assoc_contacts = contacts.AssocContacts(prefs, case_id, assoc_ids) paged_search.push_pager(ctx, ctx.locals.assoc_contacts) ctx.locals.new_contact_type = None ctx.add_session_vars('assoc_mode', 'assoc_contacts', 'new_contact_type')
def page_enter(ctx, queue_result): queue_result.headers = [ ('name', 'Name'), ('description', 'Description'), ] ctx.locals.queue_result = queue_result paged_search.push_pager(ctx, ctx.locals.queue_result) ctx.add_session_vars('queue_result')
def page_enter(ctx, group_result): group_result.headers = [ ('group_name', 'Name'), ('description', 'Description'), ('rights', 'Rights'), ] ctx.locals.group_result = group_result paged_search.push_pager(ctx, ctx.locals.group_result) ctx.add_session_vars('group_result')
def page_enter(ctx, synd_result): synd_result.headers = [ ('priority', 'Prio'), ('name', 'Name'), (None, config.group_label), (None, 'Status'), ] ctx.locals.synd_result = synd_result paged_search.push_pager(ctx, ctx.locals.synd_result) ctx.add_session_vars('synd_result')
def page_enter(ctx, bulletin_result): bulletin_result.headers = [ ('title', 'Title'), ('post_date', 'Posted'), ('expiry_date', 'Expires'), ('synopsis', 'Synopsis'), ] ctx.locals.bulletin_result = bulletin_result paged_search.push_pager(ctx, ctx.locals.bulletin_result) ctx.add_session_vars('bulletin_result')
def page_enter(ctx, user_result): user_result.headers = [ ('enabled', 'Enabled'), ('username', 'Username'), ('fullname', 'Full Name'), ('title', 'Title'), (None, config.unit_label), ] ctx.locals.user_result = user_result paged_search.push_pager(ctx, ctx.locals.user_result) ctx.add_session_vars('user_result')
def page_enter(ctx, unit_result): unit_result.headers = [ (None, 'Selected'), ('name', 'Name'), ('street_address', 'Street Address'), ('enabled', 'Enabled'), (None, config.group_label), ] ctx.locals.unit_result = unit_result paged_search.push_pager(ctx, ctx.locals.unit_result) ctx.locals.selected = [] ctx.add_session_vars('unit_result', 'selected')
def page_enter(ctx, form_result): form_result.headers = [ ('label', 'Name'), ('name', 'Label'), ('cur_version', 'Active Vers'), ('def_update_time', 'Last Edit'), ('form_type', 'Type'), ('allow_multiple', 'Multi'), ] ctx.locals.form_result = form_result paged_search.push_pager(ctx, ctx.locals.form_result) ctx.add_session_vars('form_result')
def page_enter(ctx): search = user_search.UserSearch(ctx.locals._credentials.prefs) paged_search.push_pager(ctx, search)
def page_enter(ctx, syndrome_id, notification_window): ctx.locals.case_dups = casedupe.CaseDupeScan(ctx.locals._credentials.prefs, syndrome_id, notification_window) paged_search.push_pager(ctx, ctx.locals.case_dups) ctx.add_session_vars('case_dups')
def page_enter(ctx, logview): paged_search.push_pager(ctx, logview)
def page_enter(ctx): ctx.locals.contacts = contacts.ContactSearch(ctx.locals._credentials.prefs, ctx.locals.case.case_row.case_id, ctx.locals.case.deleted) paged_search.push_pager(ctx, ctx.locals.contacts) ctx.add_session_vars('contacts')
def page_enter(ctx, task_case): assert ctx.locals.task is None paged_search.push_pager(ctx, tasksearch.TaskSearch(globals.db, ctx.locals._credentials, ctx.locals._credentials.prefs, case_id=task_case.case_row.case_id))
def page_enter(ctx, dp, title): ctx.locals.likely = LikelyMatches(dp, title) paged_search.push_pager(ctx, ctx.locals.likely) ctx.add_session_vars('likely')
def page_enter(ctx): paged_search.push_pager(ctx, ctx.locals.search.result)
def page_enter(ctx): ctx.locals.contacts = contacts.ContactSearch( ctx.locals._credentials.prefs, ctx.locals.case.case_row.case_id, ctx.locals.case.deleted) paged_search.push_pager(ctx, ctx.locals.contacts) ctx.add_session_vars('contacts')
def page_enter(ctx): paged_search.push_pager(ctx, tasksearch.TaskSearch(globals.db, ctx.locals._credentials, ctx.locals._credentials.prefs))