# HG changeset patch # User Lennard de Rijk # Date 1252528126 -7200 # Node ID 5a3c5a2f567fe94a0fd71fd0b3a430a3779439cf # Parent cad75f6ba411e836de5b677f03ff91b72aafe9d6 Moved enabling GHOP to settings.py. diff -r cad75f6ba411 -r 5a3c5a2f567f app/settings.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 = [] diff -r cad75f6ba411 -r 5a3c5a2f567f app/soc/modules/ghop/callback.py --- 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)