Moved enabling GHOP to settings.py.
authorLennard de Rijk <ljvderijk@gmail.com>
Wed, 09 Sep 2009 22:28:46 +0200
changeset 2896 5a3c5a2f567f
parent 2895 cad75f6ba411
child 2897 c0e78185444c
Moved enabling GHOP to settings.py.
app/settings.py
app/soc/modules/ghop/callback.py
--- a/app/settings.py	Wed Sep 09 21:14:22 2009 +0200
+++ b/app/settings.py	Wed Sep 09 22:28:46 2009 +0200
@@ -112,4 +112,6 @@
 )
 
 MODULE_FMT = 'soc.modules.%s.callback'
-MODULES = ['ghop']
+# TODO: to enable GHOP change the MODULES line have the following entries:
+#MODULES = ['ghop']
+MODULES = []
--- a/app/soc/modules/ghop/callback.py	Wed Sep 09 21:14:22 2009 +0200
+++ b/app/soc/modules/ghop/callback.py	Wed Sep 09 22:28:46 2009 +0200
@@ -36,9 +36,6 @@
 
   API_VERSION = 1
 
-  # TODO: set this to True if you want to enable the GHOP module
-  ENABLE_MODULE = False
-
   def __init__(self, core):
     """Initializes a new Callback object for the specified core.
     """
@@ -51,9 +48,6 @@
 
     self.core.requireUniqueService('registerWithSitemap')
 
-    if not self.ENABLE_MODULE:
-      return
-
     # register the GHOP Views
     self.core.registerSitemapEntry(mentor.view.getDjangoURLPatterns())
     self.core.registerSitemapEntry(organization.view.getDjangoURLPatterns())
@@ -73,9 +67,6 @@
     # require that we had the chance to register the urls we need with the sitemap
     self.core.requireUniqueService('registerWithSidebar')
 
-    if not self.ENABLE_MODULE:
-      return
-
     # register the GHOP menu entries
     self.core.registerSidebarEntry(mentor.view.getSidebarMenus)
     self.core.registerSidebarEntry(organization.view.getExtraMenus)