Assign categories to plugins

This commit is contained in:
Ilias Trichopoulos 2015-01-08 16:04:48 +01:00
parent e34013fcb7
commit a912a226b7
10 changed files with 9 additions and 1 deletions

View File

@ -32,6 +32,7 @@ class ImporterPlugin(IndicoPlugin):
"""
hidden = True
category = 'import'
def init(self):
super(ImporterPlugin, self).init()

View File

@ -30,3 +30,4 @@ class ImporterInvenioPlugin(ImporterSourcePluginBase):
importer_engine_classes = (InvenioImporter,)
settings_form = SettingsForm
category = 'import'

View File

@ -34,6 +34,7 @@ class LiveSyncPluginBase(IndicoPlugin): # pragma: no cover
#: dict containing the backend(s) provided by the plugin; the keys are unique identifiers
backend_classes = None
category = 'synchronization'
def init(self):
super(LiveSyncPluginBase, self).init()

View File

@ -28,3 +28,4 @@ class LiveSyncDebugPlugin(LiveSyncPluginBase):
"""
backend_classes = {'debug': LiveSyncDebugBackend}
category = 'synchronization'

View File

@ -28,3 +28,4 @@ class InvenioLiveSyncPlugin(LiveSyncPluginBase):
"""
backend_classes = {'invenio': InvenioLiveSyncBackend}
category = 'synchronization'

View File

@ -45,6 +45,7 @@ class ManualPaymentPlugin(PaymentPluginMixin, IndicoPlugin):
who then pays manually using e.g. a wire transfer. Marking the registrant
as paid is then done manually by a manager of the event.
"""
category = 'payment'
settings_form = PluginSettingsForm
event_settings_form = EventSettingsForm
default_settings = {'method_name': 'Bank Transfer'}

View File

@ -42,6 +42,7 @@ class EventSettingsForm(PaymentEventSettingsFormBase):
class PaypalPaymentPlugin(PaymentPluginMixin, IndicoPlugin):
"""Payment: PayPal
"""
category = 'payment'
settings_form = PluginSettingsForm
event_settings_form = EventSettingsForm
default_settings = {'method_name': 'PayPal',

View File

@ -37,7 +37,6 @@ class PiwikPlugin(IndicoPlugin):
Retrieves piwik statistics for conferences, meetings and contributions.
"""
settings_form = SettingsForm
report_script = 'index.php'
track_script = 'piwik.php'

View File

@ -31,6 +31,7 @@ class SearchPluginBase(IndicoPlugin):
engine_class = None
#: the SearchForm subclass to use
search_form = SearchForm
category = 'search'
def init(self):
super(SearchPluginBase, self).init()

View File

@ -31,6 +31,7 @@ class SearchPlugin(IndicoPlugin):
Provides a base for search engine plugins.
"""
category = 'search'
hidden = True
_engine_plugin = None # the search engine plugin