Exemplo n.º 1
0
def stockcrossgenotype():
    """join various tables in the database
    """

    return joined_table_template(
        ['subjects.fly_genotype', 'subjects.fly_stock', 'subjects.fly_cross'],
        'Stock + Cross + Genotype Table',
        '#',
    )
Exemplo n.º 2
0
def subjectgenotype():
    """join various tables in the database
    """
    delete_url = url_for('delete',
                         schema='subjects',
                         table='FlySubject',
                         subtable=None)

    return joined_table_template(
        ['subjects.fly_genotype', 'subjects.fly_subject'],
        'Subject + Genotype Table',
        'entersubject',
        edit_url=url_for('entersubject'),
        delete_url=delete_url)
Exemplo n.º 3
0
def crossgenotype():
    """join various tables in the database
    """
    delete_url = url_for('delete',
                         schema='subjects',
                         table='FlyCross',
                         subtable=None)

    return joined_table_template(
        ['subjects.fly_genotype', 'subjects.fly_cross'],
        'Cross + Genotype Table',
        'cross',
        edit_url=url_for('cross'),
        load_url=url_for('crossload'),
        delete_url=delete_url)
Exemplo n.º 4
0
def registeredusers():
    """registeredusers
    """
    delete_url = url_for('delete',
                         schema=config['user_schema'],
                         table=config['user_table'],
                         subtable=None)

    return joined_table_template([config.user_table],
                                 'Registered Users',
                                 edit_url=url_for('table',
                                                  schema=config['user_schema'],
                                                  table=config['user_table'],
                                                  subtable=None),
                                 delete_url=delete_url)
Exemplo n.º 5
0
def emergencycontacts():
    """emergencycontacts
    """
    if not hasattr(config.user_table, 'EmergencyContact'):
        return redirect(url_for('registeredusers'))

    delete_url = url_for('delete',
                         schema=config['user_schema'],
                         table=config['user_table'],
                         subtable=None)

    return joined_table_template([config.user_table.EmergencyContact],
                                 'Emergency Contacts',
                                 edit_url=url_for('table',
                                                  schema=config['user_schema'],
                                                  table=config['user_table'],
                                                  subtable=None),
                                 delete_url=delete_url)