예제 #1
0
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')
예제 #2
0
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')
예제 #3
0
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')
예제 #4
0
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')
예제 #5
0
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')
예제 #6
0
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')
예제 #8
0
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, 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')
예제 #10
0
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')
예제 #11
0
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')
예제 #12
0
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')
예제 #13
0
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')
예제 #14
0
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')
예제 #15
0
def page_enter(ctx):
    search = user_search.UserSearch(ctx.locals._credentials.prefs)
    paged_search.push_pager(ctx, search)
예제 #16
0
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')
예제 #17
0
def page_enter(ctx, logview):
    paged_search.push_pager(ctx, logview)
예제 #18
0
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')
예제 #19
0
def page_enter(ctx):
    search = user_search.UserSearch(ctx.locals._credentials.prefs)
    paged_search.push_pager(ctx, search)
예제 #20
0
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))
예제 #21
0
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')
예제 #22
0
def page_enter(ctx):
    paged_search.push_pager(ctx, ctx.locals.search.result)
예제 #23
0
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')
예제 #24
0
def page_enter(ctx):
    paged_search.push_pager(ctx, tasksearch.TaskSearch(globals.db, 
                                          ctx.locals._credentials,
                                          ctx.locals._credentials.prefs))