Rename ~IndicoPlugin.hidden => .configurable

This commit is contained in:
Adrian Moennich 2015-01-19 13:34:08 +01:00
parent d3340bc10f
commit 84f4bd8816
11 changed files with 8 additions and 11 deletions

View File

@ -77,7 +77,7 @@ class ChatPlugin(IndicoPlugin):
Provides an XMPP based chat for events.
"""
configurable = True
settings_form = SettingsForm
settings_form_field_opts = {
'server': {'placeholder': 'jabber.server.tld'},

View File

@ -30,8 +30,6 @@ class ImporterPlugin(IndicoPlugin):
Extends Indico for other plugins to import data from external sources to
the timetable.
"""
hidden = True
category = PluginCategory.importers
def init(self):

View File

@ -27,6 +27,6 @@ class ImporterInvenioPlugin(ImporterSourcePluginBase):
Adds Invenio importer to Indico timetable import sources.
"""
importer_engine_classes = (InvenioImporter,)
configurable = True
settings_form = SettingsForm
importer_engine_classes = (InvenioImporter,)

View File

@ -51,7 +51,7 @@ class LiveSyncPlugin(IndicoPlugin):
Provides the basic LiveSync functionality.
Only useful if a livesync agent plugin is installed, too.
"""
configurable = True
settings_form = SettingsForm
default_settings = {'excluded_categories': [],
'queue_entry_ttl': 0}

View File

@ -26,5 +26,4 @@ class LiveSyncDebugPlugin(LiveSyncPluginBase):
Provides the debug backend for LiveSync which just prints/logs changes
"""
backend_classes = {'debug': LiveSyncDebugBackend}

View File

@ -26,5 +26,4 @@ class InvenioLiveSyncPlugin(LiveSyncPluginBase):
Provides the Invenio backend for LiveSync
"""
backend_classes = {'invenio': InvenioLiveSyncBackend}

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.
"""
configurable = True
settings_form = PluginSettingsForm
event_settings_form = EventSettingsForm
default_settings = {'method_name': 'Bank Transfer'}

View File

@ -47,6 +47,7 @@ class PaypalPaymentPlugin(PaymentPluginMixin, IndicoPlugin):
Provides a payment method using the PayPal IPN API.
"""
configurable = True
settings_form = PluginSettingsForm
event_settings_form = EventSettingsForm
default_settings = {'method_name': 'PayPal',

View File

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

View File

@ -30,9 +30,7 @@ class SearchPlugin(IndicoPlugin):
Provides a base for search engine plugins.
"""
category = PluginCategory.search
hidden = True
_engine_plugin = None # the search engine plugin
def init(self):

View File

@ -44,7 +44,7 @@ class InvenioSearchPlugin(SearchPluginBase):
Uses Invenio as Indico's search engine
"""
configurable = True
settings_form = SettingsForm
default_settings = {
'search_url': None,