Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

interface.py 593B

1234567891011121314151617181920
  1. from .plugins import Plugin
  2. from .exceptions import *
  3. from lodel.settings.validator import SettingValidator
  4. class InterfacePlugin(Plugin):
  5. ##@brief Singleton instance storage
  6. _instance = None
  7. _plist_confspecs = {
  8. 'section': 'lodel2',
  9. 'key': 'interface',
  10. 'default': None,
  11. 'validator': SettingValidator('strip', none_is_valid = True)}
  12. def __init__(self, name):
  13. if InterfacePlugin._instance is not None:
  14. raise PluginError("Maximum one interface allowed")
  15. super().__init__(name)
  16. self._instance = self