Logo Search packages:      
Sourcecode: zope-callprofiler version File versions

def CallProfiler::CallProfiler::CallProfiler::configure (   self,
  enabled = [] 
)

Set the given items to enabled

Definition at line 200 of file CallProfiler.py.

00200                                    :
        '''Set the given items to enabled
        '''
        # install or uninstall the publisher hook as required
        if not enabled and self.isPublisherHookInstalled():
            self.uninstallPublisherHook()
        elif enabled and not self.isPublisherHookInstalled():
            self.installPublisherHook()

        # now install the selected modules
        for component, module in self.getComponentModules():
            if component in enabled and not module.isInstalled():
                module.install()
            elif component not in enabled and module.isInstalled():
                module.uninstall()

        if not enabled:
            message = 'all profiling disabled'
        else:
            message = ', '.join(enabled) + ' enabled'

        return self.configureForm(self, self.REQUEST,
            manage_tabs_message=message)

    security.declarePrivate('installPublisherHook')
    def installPublisherHook(self):


Generated by  Doxygen 1.6.0   Back to index