Line | |
---|
1 | from zope.interface import Interface |
---|
2 | |
---|
3 | class IBlog(Interface): |
---|
4 | """ Marker interface for SimpleBlog blog object. |
---|
5 | """ |
---|
6 | |
---|
7 | class IBlogFolder(Interface): |
---|
8 | """ Marker interface for SimpleBlog blog folder object. |
---|
9 | """ |
---|
10 | |
---|
11 | class IBlogEntry(Interface): |
---|
12 | """ Marker interface for SimpleBlog blog entry object. |
---|
13 | """ |
---|
14 | |
---|
15 | class IItemManipulator(Interface): |
---|
16 | """ Interface for adapters that are looked up in 'itemmanipulator' |
---|
17 | pipeline section. |
---|
18 | """ |
---|
19 | |
---|
20 | def __call__(item, **kw): |
---|
21 | """ Do something with a pipeline item and return it. |
---|
22 | kw - dictionary with extra arguments, for example some useful keys |
---|
23 | in item (pathkey, ...) |
---|
24 | """ |
---|
25 | |
---|
26 | class IExportItemManipulator(IItemManipulator): |
---|
27 | """ Exporting adapter. |
---|
28 | """ |
---|
29 | |
---|
30 | class IImportItemManipulator(IItemManipulator): |
---|
31 | """ Importing adapter |
---|
32 | """ |
---|
33 | |
---|
34 | try: |
---|
35 | from Products.Archetypes.interfaces import IBaseObject |
---|
36 | except ImportError: |
---|
37 | from plone.app.transmogrifier.interfaces import IBaseObject |
---|
Note: See
TracBrowser
for help on using the repository browser.