source: products/quintagroup.transmogrifier/branches/plone-2.1/quintagroup.transmogrifier/quintagroup/transmogrifier/interfaces.py

Last change on this file was 339, checked in by myroslav, 18 years ago

wrong version

File size: 1.3 KB
Line 
1from zope.interface import Interface
2
3class IExportDataCorrector(Interface):
4    """ Inteface for components that do some data correction on export.
5    """
6
7    def __call__(data):
8        """ Correct data given in 'data' argument and return it.
9        """
10
11class IImportDataCorrector(Interface):
12    """ Inteface for components that do some data correction on import.
13    """
14
15    def __call__(data):
16        """ Correct data given in 'data' argument and return it.
17        """
18
19# next is used in sitewalker.py
20
21try:
22    from Products.Archetypes.interfaces import IBaseFolder
23except ImportError:
24    class IBaseFolder(Interface):
25        """Folderish base interface marker
26        """
27
28# next is used in propertymanager.py
29
30try:
31    from OFS.interfaces import IPropertyManager
32except ImportError:
33    class IPropertyManager(Interface):
34        """ Marker interface for PropertyManager mixin.
35        """
36
37# next are used in adapters
38
39try:
40    from Products.ATContentTypes.interface import IATFile
41except ImportError:
42    class IATFile(Interface):
43        """
44        """
45
46try:
47    from Products.ATContentTypes.interface import IATImage
48except ImportError:
49    class IATImage(Interface):
50        """
51        """
52
53try:
54    from Products.ATContentTypes.interface import IATTopicCriterion
55except ImportError:
56    class IATTopicCriterion(Interface):
57        """
58        """
Note: See TracBrowser for help on using the repository browser.