app/soc/modules/ghop/callback.py
changeset 2783 339696f3f5cf
parent 2397 d943fa182fae
child 2784 801eee4eda9a
--- a/app/soc/modules/ghop/callback.py	Sat Aug 22 03:56:04 2009 +0530
+++ b/app/soc/modules/ghop/callback.py	Sat Aug 22 03:56:14 2009 +0530
@@ -21,6 +21,9 @@
   ]
 
 
+from soc.modules.ghop.views.models import program
+
+
 class Callback(object):
   """Callback object that handles interaction between the core.
   """
@@ -39,9 +42,14 @@
 
     self.core.requireUniqueService('registerWithSitemap')
 
+    self.core.registerSitemapEntry(program.view.getDjangoURLPatterns())
+
   def registerWithSidebar(self):
     """Called by the server when sidebar entries should be registered.
     """
 
     # require that we had the chance to register the urls we need with the sitemap
     self.core.requireUniqueService('registerWithSidebar')
+
+    self.core.registerSidebarEntry(program.view.getSidebarMenus)
+