Ignore:
Timestamp:
13 May 2024, 21:10:53 (6 months ago)
Author:
Henrik Bettermann
Message:

Let’s try the dumper.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/configuration.py

    r8204 r17780  
    2121import grok
    2222from zope.interface import implementedBy
    23 from waeup.kofa.utils.helpers import attrs_to_fields
     23from waeup.kofa.utils.helpers import attrs_to_fields, iface_names
     24from waeup.uniben.interfaces import (
     25    ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
    2426from waeup.kofa.configuration import (
    25     SessionConfigurationFactory, SessionConfiguration)
     27    SessionConfigurationFactory, SessionConfiguration,
     28    ConfigurationProcessor, ConfigurationExporter)
    2629from waeup.uniben.interfaces import (
    2730    ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
     
    4649    def getInterfaces(self):
    4750        return implementedBy(CustomSessionConfiguration)
     51
     52class CustomConfigurationExporter(ConfigurationExporter):
     53    """The Configuration Exporter exports all configuration data. It iterates over all
     54    objects of the ``configuration`` container.
     55    """
     56    fields = tuple(sorted(iface_names(ICustomSessionConfiguration)))
     57
     58class CustomConfigurationProcessor(ConfigurationProcessor):
     59    """The Configuration Processor processes session configuration objects in
     60    the ``configuration`` container.
     61
     62    """
     63    iface = ICustomSessionConfiguration
Note: See TracChangeset for help on using the changeset viewer.