Last change
on this file was
339,
checked in by myroslav, 18 years ago
|
wrong version
|
File size:
1.3 KB
|
Line | |
---|
1 | from zope.interface import Interface |
---|
2 | |
---|
3 | class 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 | |
---|
11 | class 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 | |
---|
21 | try: |
---|
22 | from Products.Archetypes.interfaces import IBaseFolder |
---|
23 | except ImportError: |
---|
24 | class IBaseFolder(Interface): |
---|
25 | """Folderish base interface marker |
---|
26 | """ |
---|
27 | |
---|
28 | # next is used in propertymanager.py |
---|
29 | |
---|
30 | try: |
---|
31 | from OFS.interfaces import IPropertyManager |
---|
32 | except ImportError: |
---|
33 | class IPropertyManager(Interface): |
---|
34 | """ Marker interface for PropertyManager mixin. |
---|
35 | """ |
---|
36 | |
---|
37 | # next are used in adapters |
---|
38 | |
---|
39 | try: |
---|
40 | from Products.ATContentTypes.interface import IATFile |
---|
41 | except ImportError: |
---|
42 | class IATFile(Interface): |
---|
43 | """ |
---|
44 | """ |
---|
45 | |
---|
46 | try: |
---|
47 | from Products.ATContentTypes.interface import IATImage |
---|
48 | except ImportError: |
---|
49 | class IATImage(Interface): |
---|
50 | """ |
---|
51 | """ |
---|
52 | |
---|
53 | try: |
---|
54 | from Products.ATContentTypes.interface import IATTopicCriterion |
---|
55 | except ImportError: |
---|
56 | class IATTopicCriterion(Interface): |
---|
57 | """ |
---|
58 | """ |
---|
Note: See
TracBrowser
for help on using the repository browser.