def apps(): app_url = request.forms.get('app_url') manifest = preload.fetch_webapp(app_url, DEFAULT_EXTERNAL_APP_PATH) return {'name': manifest['name']}
def install_from_marketplace(manifestEncoded): manifestUrl = base64.b64decode(manifestEncoded) preload.fetch_webapp(manifestUrl, os.path.join(GAIA_DISTRIBUTION_DIR, 'external-apps')) return {'ok': 'true'}