def start_extension(): if not saved_visit_is_on(): return log.debug("Saved Visit plugin starting") #Register the plugin for the Visit Tracking framework visit.enable_visit_plugin(SavedVisitPlugin())
def start_extension(): # Bail out if the application hasn't enabled this extension if not turbogears.config.get("identity.on", False): return # Identity requires that Visit tracking be enabled if not turbogears.config.get("visit.on", False): raise IdentityConfigurationException("Visit tracking must be enabled (visit.on)") log.info("Identity starting") # Temporary until tg-admin can call create_extension_model create_extension_model() # Register the plugin for the Visit Tracking framework visit.enable_visit_plugin(IdentityVisitPlugin())
def start_extension(): # Bail out if the application hasn't enabled this extension if not turbogears.config.get('identity.on', False): return # Identity requires that Visit tracking be enabled if not turbogears.config.get('visit.on', False): raise IdentityConfigurationException( "Visit tracking must be enabled (visit.on)") log.info("Identity starting") # Temporary until tg-admin can call create_extension_model create_extension_model() # Register the plugin for the Visit Tracking framework visit.enable_visit_plugin(IdentityVisitPlugin())
def start_extension(): """Register the IdentityVisitPluguin with the visit plug-in framework. Also sets up the configured Identity provider. """ # Bail out if the application hasn't enabled this extension if not config.get('identity.on', False): return # Identity requires that Visit tracking be enabled if not config.get('visit.on', False): raise IdentityConfigurationException( "Visit tracking must be enabled (visit.on)") log.info("Identity starting") # Temporary until tg-admin can call create_extension_model create_extension_model() # Register the plugin for the Visit Tracking framework visit.enable_visit_plugin(IdentityVisitPlugin())