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

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

removed support of Quills products

File size: 3.2 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        <!-- In Plone 2.1 overrides.zcml isn't loaded, but conflicting configuration
22             actions wouldn't raise error on startup - the latest directive will
23             override previous -->
24        <transmogrifier:registerConfig
25            name="export"
26            title="Export pipeline configuration"
27            description="Customized for SimpleBlog/Quills content types content export pipeline."
28            configuration="export.cfg"
29            />
30
31        <!-- mark blog and blog entry objects so we can register export adapters for them -->
32
33        <five:implements
34            class="Products.SimpleBlog.content.BlogEntry"
35            interface=".interfaces.IBlogEntry"
36            />
37
38        <!-- 'datacorrector' section adapter -->
39        <adapter
40            for=".interfaces.IBlogEntry"
41            provides="quintagroup.transmogrifier.interfaces.IExportDataCorrector"
42            factory=".adapters.BlogEntryExporter"
43            name="marshall"
44            />
45
46        <!-- 'itemmanipulator' section adapter -->
47        <adapter
48            for=".interfaces.IBlogEntry"
49            provides=".interfaces.IExportItemManipulator"
50            factory=".adapters.BlogEntryManifest"
51            />
52
53    </configure>
54
55    <!-- next stylesheets are used when migrating to QuillsEnabled -->
56    <transmogrifier:stylesheet
57        source="marshall"
58        from="Blog"
59        to="Large Plone Folder"
60        file="blog-largefolder.xsl"
61        />
62
63    <transmogrifier:stylesheet
64        source="marshall"
65        from="BlogFolder"
66        to="Large Plone Folder"
67        file="blogfolder-largefolder.xsl"
68        />
69
70    <transmogrifier:stylesheet
71        source="marshall"
72        from="BlogEntry"
73        to="Document"
74        file="blogentry-document.xsl"
75        />
76
77    <!-- this adapter converts all workflow histories to simple_publication_workflow -->
78    <adapter
79        for="quintagroup.transmogrifier.simpleblog2quills.interfaces.IBaseObject"
80        provides="quintagroup.transmogrifier.interfaces.IImportDataCorrector"
81        factory=".adapters.WorkflowImporter"
82        name="marshall"
83        />
84
85    <configure zcml:condition="installed Products.QuillsEnabled">
86
87        <utility
88            component=".activator.BlogActivatorSection"
89            name="quintagroup.transmogrifier.simpleblog2quills.activator"
90            provides="collective.transmogrifier.interfaces.ISectionBlueprint"
91            />
92
93    </configure>
94
95</configure>
Note: See TracBrowser for help on using the repository browser.