示例#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',
        '#',
    )
示例#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)
示例#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)
示例#4
0
文件: main.py 项目: gucky92/loris
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)
示例#5
0
文件: main.py 项目: gucky92/loris
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)