- Timestamp:
- 13 May 2024, 21:10:53 (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/configuration.py
r8204 r17780 21 21 import grok 22 22 from zope.interface import implementedBy 23 from waeup.kofa.utils.helpers import attrs_to_fields 23 from waeup.kofa.utils.helpers import attrs_to_fields, iface_names 24 from waeup.uniben.interfaces import ( 25 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) 24 26 from waeup.kofa.configuration import ( 25 SessionConfigurationFactory, SessionConfiguration) 27 SessionConfigurationFactory, SessionConfiguration, 28 ConfigurationProcessor, ConfigurationExporter) 26 29 from waeup.uniben.interfaces import ( 27 30 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) … … 46 49 def getInterfaces(self): 47 50 return implementedBy(CustomSessionConfiguration) 51 52 class 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 58 class 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.