~juju-gui/charms/precise/juju-gui/trunk

« back to all changes in this revision

Viewing changes to hooks/utils.py

  • Committer: Brad Crittenden
  • Date: 2013-09-12 19:58:07 UTC
  • mfrom: (105.2.4 ga-key)
  • Revision ID: bac@canonical.com-20130912195807-19pl1318uqwbys3s
[r=rick_h] Remove use-analytics and add ga-key for specifying Google Analytics key to use.

Show diffs side-by-side

added added

removed removed

Lines of Context:
404
404
 
405
405
def write_gui_config(
406
406
        console_enabled, login_help, readonly, in_staging, charmworld_url,
407
 
        build_dir, secure=True, sandbox=False, use_analytics=False,
 
407
        build_dir, secure=True, sandbox=False,
408
408
        default_viewmode='sidebar', show_get_juju_button=False,
409
 
        config_js_path=None):
 
409
        config_js_path=None, ga_key=''):
410
410
    """Generate the GUI configuration file."""
411
411
    log('Generating the Juju GUI configuration file.')
412
412
    is_legacy_juju = legacy_juju()
433
433
        'protocol': json.dumps(protocol),
434
434
        'sandbox': json.dumps(sandbox),
435
435
        'charmworld_url': json.dumps(charmworld_url),
436
 
        'use_analytics': json.dumps(use_analytics),
 
436
        'ga_key': json.dumps(ga_key),
437
437
        'default_viewmode': json.dumps(default_viewmode),
438
438
        'show_get_juju_button': json.dumps(show_get_juju_button),
439
439
    }