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

Last change on this file 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
RevLine 
[293]1<configure
2    xmlns="http://namespaces.zope.org/zope"
[532]3    xmlns:five="http://namespaces.zope.org/five"
4    xmlns:zcml="http://namespaces.zope.org/zcml"
[293]5    xmlns:transmogrifier="http://namespaces.plone.org/transmogrifier"
[359]6    i18n_domain="quintagroup.transmogrifier.simpleblog2quills">
[293]7
[309]8    <include package="quintagroup.transmogrifier" />
[293]9    <include package="quintagroup.transmogrifier" file="meta.zcml" />
10
[1247]11    <!-- this section is similar to datacorrector but has more power
12         to change pipeline item -->
[532]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
[1249]21        <utility
22            component=".cleaner.BlogEntryCleaner"
23            name="quintagroup.transmogrifier.simpleblog2quills.blogentrycleaner"
24            provides="collective.transmogrifier.interfaces.ISectionBlueprint"
25            />
26
[532]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 -->
[533]38
[532]39        <five:implements
40            class="Products.SimpleBlog.content.BlogEntry"
41            interface=".interfaces.IBlogEntry"
42            />
43
[1247]44        <!-- 'datacorrector' section adapter -->
[532]45        <adapter
46            for=".interfaces.IBlogEntry"
[533]47            provides="quintagroup.transmogrifier.interfaces.IExportDataCorrector"
[532]48            factory=".adapters.BlogEntryExporter"
49            name="marshall"
50            />
51
52        <!-- 'itemmanipulator' section adapter -->
53        <adapter
[533]54            for=".interfaces.IBlogEntry"
55            provides=".interfaces.IExportItemManipulator"
56            factory=".adapters.BlogEntryManifest"
57            />
58
[532]59    </configure>
60
[528]61    <!-- next stylesheets are used when migrating to QuillsEnabled -->
62    <transmogrifier:stylesheet
63        source="marshall"
64        from="Blog"
[594]65        to="Large Plone Folder"
66        file="blog-largefolder.xsl"
[528]67        />
68
69    <transmogrifier:stylesheet
70        source="marshall"
[594]71        from="BlogFolder"
72        to="Large Plone Folder"
73        file="blogfolder-largefolder.xsl"
74        />
75
76    <transmogrifier:stylesheet
77        source="marshall"
[528]78        from="BlogEntry"
79        to="Document"
80        file="blogentry-document.xsl"
81        />
82
[1248]83    <!-- this adapter converts all workflow histories to simple_publication_workflow -->
[612]84    <adapter
85        for="quintagroup.transmogrifier.simpleblog2quills.interfaces.IBaseObject"
86        provides="quintagroup.transmogrifier.interfaces.IImportDataCorrector"
87        factory=".adapters.WorkflowImporter"
88        name="marshall"
89        />
[554]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
[293]101</configure>
Note: See TracBrowser for help on using the repository browser.