Changeset 17756
- Timestamp:
- 10 May 2024, 13:49:33 (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/configuration.py
r15563 r17756 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 24 from waeup.kofa.configuration import ( 25 SessionConfigurationFactory, SessionConfiguration) 25 SessionConfigurationFactory, SessionConfiguration, 26 ConfigurationProcessor, ConfigurationExporter) 26 27 from kofacustom.iuokada.interfaces import ( 27 28 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) … … 46 47 def getInterfaces(self): 47 48 return implementedBy(CustomSessionConfiguration) 49 50 class CustomConfigurationExporter(ConfigurationExporter): 51 """The Configuration Exporter exports all configuration data. It iterates over all 52 objects of the ``configuration`` container. 53 """ 54 fields = tuple(sorted(iface_names(ICustomSessionConfiguration))) 55 56 class CustomConfigurationProcessor(ConfigurationProcessor): 57 """The Configuration Processor processes session configuration objects in 58 the ``configuration`` container. 59 60 """ 61 iface = ICustomSessionConfiguration 62
Note: See TracChangeset for help on using the changeset viewer.