source: products/quintagroup.transmogrifier.simpleblog2quills/branches/without_image_move/quintagroup/transmogrifier/simpleblog2quills/configure.zcml @ 1249

Last change on this file since 1249 was 1249, checked in by koval, 15 years ago

added pipeline section for cleaning of blog entries (doesn't work now)

File size: 3.4 KB
Line 
1<configure
2    xmlns="http://namespaces.zope.org/zope"
3    xmlns:five="http://namespaces.zope.org/five"
4    xmlns:zcml="http://namespaces.zope.org/zcml"
5    xmlns:transmogrifier="http://namespaces.plone.org/transmogrifier"
6    i18n_domain="quintagroup.transmogrifier.simpleblog2quills">
7
8    <include package="quintagroup.transmogrifier" />
9    <include package="quintagroup.transmogrifier" file="meta.zcml" />
10
11    <!-- this section is similar to datacorrector but has more power
12         to change pipeline item -->
13    <utility
14        component=".itemmanipulator.ItemManipulatorSection"
15        name="quintagroup.transmogrifier.itemmanipulator"
16        provides="collective.transmogrifier.interfaces.ISectionBlueprint"
17        />
18
19    <configure zcml:condition="installed Products.SimpleBlog">
20
21        <utility
22            component=".cleaner.BlogEntryCleaner"
23            name="quintagroup.transmogrifier.simpleblog2quills.blogentrycleaner"
24            provides="collective.transmogrifier.interfaces.ISectionBlueprint"
25            />
26
27        <!-- In Plone 2.1 overrides.zcml isn't loaded, but conflicting configuration
28             actions wouldn't raise error on startup - the latest directive will
29             override previous -->
30        <transmogrifier:registerConfig
31            name="export"
32            title="Export pipeline configuration"
33            description="Customized for SimpleBlog/Quills content types content export pipeline."
34            configuration="export.cfg"
35            />
36
37        <!-- mark blog and blog entry objects so we can register export adapters for them -->
38
39        <five:implements
40            class="Products.SimpleBlog.content.BlogEntry"
41            interface=".interfaces.IBlogEntry"
42            />
43
44        <!-- 'datacorrector' section adapter -->
45        <adapter
46            for=".interfaces.IBlogEntry"
47            provides="quintagroup.transmogrifier.interfaces.IExportDataCorrector"
48            factory=".adapters.BlogEntryExporter"
49            name="marshall"
50            />
51
52        <!-- 'itemmanipulator' section adapter -->
53        <adapter
54            for=".interfaces.IBlogEntry"
55            provides=".interfaces.IExportItemManipulator"
56            factory=".adapters.BlogEntryManifest"
57            />
58
59    </configure>
60
61    <!-- next stylesheets are used when migrating to QuillsEnabled -->
62    <transmogrifier:stylesheet
63        source="marshall"
64        from="Blog"
65        to="Large Plone Folder"
66        file="blog-largefolder.xsl"
67        />
68
69    <transmogrifier:stylesheet
70        source="marshall"
71        from="BlogFolder"
72        to="Large Plone Folder"
73        file="blogfolder-largefolder.xsl"
74        />
75
76    <transmogrifier:stylesheet
77        source="marshall"
78        from="BlogEntry"
79        to="Document"
80        file="blogentry-document.xsl"
81        />
82
83    <!-- this adapter converts all workflow histories to simple_publication_workflow -->
84    <adapter
85        for="quintagroup.transmogrifier.simpleblog2quills.interfaces.IBaseObject"
86        provides="quintagroup.transmogrifier.interfaces.IImportDataCorrector"
87        factory=".adapters.WorkflowImporter"
88        name="marshall"
89        />
90
91    <configure zcml:condition="installed Products.QuillsEnabled">
92
93        <utility
94            component=".activator.BlogActivatorSection"
95            name="quintagroup.transmogrifier.simpleblog2quills.activator"
96            provides="collective.transmogrifier.interfaces.ISectionBlueprint"
97            />
98
99    </configure>
100
101</configure>
Note: See TracBrowser for help on using the repository browser.