Пример #1
0
def fetch_record_sets():
    server = ShorthandServer(current_app.config['config_path'])

    directory_filter = get_request_argument(request.args,
                                            name='directory_filter')
    if directory_filter == 'ALL':
        directory_filter = None

    record_sets = server.get_record_sets(directory_filter=None)
    return json.dumps(wrap_response_data(record_sets))
Пример #2
0
def show_databases():
    server = ShorthandServer(current_app.config['config_path'])
    record_sets = server.get_record_sets()
    return render_template('record_sets.j2',
                           record_sets=record_sets,
                           static_content=static_content)