Project

General

Profile

Bug #354

easy method to enable/disable some modules

Added by Pierre Chifflier almost 15 years ago. Updated almost 15 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
06/18/2009
Due date:
% Done:

100%

Resolution:

Description

An easy method for enabling/disabling some modules is needed, since some of the modules can prevent the correlator from working (dshield for ex) and that Python modules is a pain to disable/remove:

# find /usr -name "dshield.py*" -delete -print
/usr/share/pyshared/PreludeCorrelator/plugins/dshield.py
/usr/lib/pymodules/python2.5/PreludeCorrelator/plugins/dshield.pyc
/usr/lib/pymodules/python2.5/PreludeCorrelator/plugins/dshield.py
/usr/lib/pymodules/python2.6/PreludeCorrelator/plugins/dshield.pyc
/usr/lib/pymodules/python2.6/PreludeCorrelator/plugins/dshield.py

# su -c '/usr/bin/prelude-correlator' -s /bin/sh prelude-correlator
Traceback (most recent call last):
  File "/usr/bin/prelude-correlator", line 8, in <module>
    load_entry_point('prelude-correlator==0.9.0-beta4', 'console_scripts', 'prelude-correlator')()
  File "/usr/lib/pymodules/python2.5/PreludeCorrelator/main.py", line 149, in main
    prelude_client = PreludeClient(print_input=ifd, print_output=ofd, dry_run=options.dry_run)
  File "/usr/lib/pymodules/python2.5/PreludeCorrelator/main.py", line 45, in __init__
    self._pm = pluginmanager.PluginManager()
  File "/usr/lib/pymodules/python2.5/PreludeCorrelator/pluginmanager.py", line 52, in __init__
    plugin_class = entrypoint.load()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1913, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named dshield

# aaaaargh
-su: aaaaargh: command not found

Associated revisions

Revision abb33fa2 (diff)
Added by Yoann VANDOORSELAERE almost 15 years ago

Make it possible to disable plugin

It is now possible to add the following setting in prelude-correlator.conf:
[PluginClassName]
disable = true

This fixes #354.

History

#1 Updated by Yoann VANDOORSELAERE almost 15 years ago

  • Status changed from New to Assigned
  • Assignee set to Yoann VANDOORSELAERE
  • Target version set to 0.9.0-beta5

#2 Updated by Yoann VANDOORSELAERE almost 15 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF