def GUI_app_open(n_clicks, value): if n_clicks != 0: if not value: pass else: system.web_open(value) return u'opened'
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'
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))
def API_open(): url = flask.request.args.get('url') system.web_open(url) return jsonify({'message': 'URL opened', 'rc': 0})
def API_openmeet(): system.web_open(OPENMEET_var) return jsonify({'message': 'Meet opened', 'rc': 0})