Example #1
0
def GUI_app_open(n_clicks, value):
    if n_clicks != 0:
        if not value:
            pass
        else:
            system.web_open(value)
    return u'opened'
Example #2
0
def GUI_app_open(n_clicks, value, value_h):
    if n_clicks != 0:
        if value_h is None:
            system.web_open(value)
        else:
            system.web_open(value_h)
    return u'opened'
Example #3
0
def open_files(files):
    """Open selected files

    :param files: Files to open
    :type files: list
    """
    for filename in files:
        system.web_open('file://{dir}/{filename}'.format(dir=UPLOAD_DIRECTORY,
                                                         filename=filename))
Example #4
0
def API_open():
    url = flask.request.args.get('url')
    system.web_open(url)
    return jsonify({'message': 'URL opened', 'rc': 0})
Example #5
0
def API_openmeet():
    system.web_open(OPENMEET_var)
    return jsonify({'message': 'Meet opened', 'rc': 0})