Last change
on this file since 1552 was
1247,
checked in by koval, 15 years ago
|
now images are not moved to central folder on export
|
File size:
814 bytes
|
Line | |
---|
1 | from zope.interface import Interface |
---|
2 | |
---|
3 | class IBlogEntry(Interface): |
---|
4 | """ Marker interface for SimpleBlog blog entry object. |
---|
5 | """ |
---|
6 | |
---|
7 | class IItemManipulator(Interface): |
---|
8 | """ Interface for adapters that are looked up in 'itemmanipulator' |
---|
9 | pipeline section. |
---|
10 | """ |
---|
11 | |
---|
12 | def __call__(item, **kw): |
---|
13 | """ Do something with a pipeline item and return it. |
---|
14 | kw - dictionary with extra arguments, for example some useful keys |
---|
15 | in item (pathkey, ...) |
---|
16 | """ |
---|
17 | |
---|
18 | class IExportItemManipulator(IItemManipulator): |
---|
19 | """ Exporting adapter. |
---|
20 | """ |
---|
21 | |
---|
22 | class IImportItemManipulator(IItemManipulator): |
---|
23 | """ Importing adapter |
---|
24 | """ |
---|
25 | |
---|
26 | try: |
---|
27 | from Products.Archetypes.interfaces import IBaseObject |
---|
28 | except ImportError: |
---|
29 | from plone.app.transmogrifier.interfaces import IBaseObject |
---|
Note: See
TracBrowser
for help on using the repository browser.