app/soc/views/helper/responses.py
changeset 405 f3525c1288ed
parent 365 74dec172944e
child 411 c8ac5c1161e2
--- a/app/soc/views/helper/responses.py	Wed Oct 22 06:20:02 2008 +0000
+++ b/app/soc/views/helper/responses.py	Wed Oct 22 16:21:50 2008 +0000
@@ -29,6 +29,7 @@
 from django.template import loader
 
 from soc.logic import system
+from soc.logic.models import site_settings as settings_logic
 from soc.logic.site import id_user
 from soc.logic.site import sidebar
 from soc.views import helper
@@ -107,7 +108,13 @@
   context['sign_out'] = users.create_logout_url(request.path)
   context['sidebar_menu_html'] = str(html_menu.UlMenu(
       sidebar.buildSidebar(**context)))
-
+      
+  site_settings = settings_logic.logic.getFromFields(
+      path=settings_logic.logic.DEF_SITE_SETTINGS_PATH)
+  
+  if site_settings and site_settings.ga_tracking_no:
+    context['ga_tracking_no'] = site_settings.ga_tracking_no
+  
   return context