mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
Assign categories to plugins
This commit is contained in:
parent
e34013fcb7
commit
a912a226b7
@ -32,6 +32,7 @@ class ImporterPlugin(IndicoPlugin):
|
||||
"""
|
||||
|
||||
hidden = True
|
||||
category = 'import'
|
||||
|
||||
def init(self):
|
||||
super(ImporterPlugin, self).init()
|
||||
|
||||
@ -30,3 +30,4 @@ class ImporterInvenioPlugin(ImporterSourcePluginBase):
|
||||
|
||||
importer_engine_classes = (InvenioImporter,)
|
||||
settings_form = SettingsForm
|
||||
category = 'import'
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -28,3 +28,4 @@ class LiveSyncDebugPlugin(LiveSyncPluginBase):
|
||||
"""
|
||||
|
||||
backend_classes = {'debug': LiveSyncDebugBackend}
|
||||
category = 'synchronization'
|
||||
|
||||
@ -28,3 +28,4 @@ class InvenioLiveSyncPlugin(LiveSyncPluginBase):
|
||||
"""
|
||||
|
||||
backend_classes = {'invenio': InvenioLiveSyncBackend}
|
||||
category = 'synchronization'
|
||||
|
||||
@ -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'}
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user