# HG changeset patch # User Marcin Kuzminski # Date 2010-12-29 10:13:17 # Node ID cca7286401b38b0a5d3e9b038941f7cbfdc078b7 # Parent 042d38683d42c5150786f6d2199c76e25b852528 fixes for #89 ga code diff --git a/rhodecode/controllers/admin/settings.py b/rhodecode/controllers/admin/settings.py --- a/rhodecode/controllers/admin/settings.py +++ b/rhodecode/controllers/admin/settings.py @@ -137,7 +137,7 @@ class SettingsController(BaseController) hgsettings2.app_settings_value = form_result['rhodecode_realm'] hgsettings3 = settings_model.get('ga_code') - hgsettings3.app_settings_value = form_result['ga_code'] + hgsettings3.app_settings_value = form_result['rhodecode_ga_code'] diff --git a/rhodecode/lib/base.py b/rhodecode/lib/base.py --- a/rhodecode/lib/base.py +++ b/rhodecode/lib/base.py @@ -17,7 +17,7 @@ class BaseController(WSGIController): def __before__(self): c.rhodecode_version = __version__ c.rhodecode_name = config.get('rhodecode_title') - c.ga_code = config.get('rhodeocode_ga_code') + c.ga_code = config.get('rhodecode_ga_code') c.repo_name = get_repo_slug(request) c.cached_repo_list = ScmModel().get_repos() c.backends = BACKENDS.keys() diff --git a/rhodecode/model/forms.py b/rhodecode/model/forms.py --- a/rhodecode/model/forms.py +++ b/rhodecode/model/forms.py @@ -438,7 +438,7 @@ def ApplicationSettingsForm(): filter_extra_fields = False rhodecode_title = UnicodeString(strip=True, min=1, not_empty=True) rhodecode_realm = UnicodeString(strip=True, min=1, not_empty=True) - ga_code = UnicodeString(strip=True, min=1, not_empty=False) + rhodecode_ga_code = UnicodeString(strip=True, min=1, not_empty=False) return _ApplicationSettingsForm diff --git a/rhodecode/templates/admin/settings/settings.html b/rhodecode/templates/admin/settings/settings.html --- a/rhodecode/templates/admin/settings/settings.html +++ b/rhodecode/templates/admin/settings/settings.html @@ -103,7 +103,7 @@
- ${h.text('ga_code',size=30)} + ${h.text('rhodecode_ga_code',size=30)}