source: products/quintagroup.transmogrifier.simpleblog2quills/trunk/quintagroup/transmogrifier/simpleblog2quills/configure.zcml @ 532

Last change on this file since 532 was 532, checked in by crchemist, 18 years ago

Clean up code.

File size: 3.6 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    <utility
12        component=".itemmanipulator.ItemManipulatorSection"
13        name="quintagroup.transmogrifier.itemmanipulator"
14        provides="collective.transmogrifier.interfaces.ISectionBlueprint"
15        />
16
17    <configure zcml:condition="installed Products.SimpleBlog">
18
19        <!-- In Plone 2.1 overrides.zcml isn't loaded, but conflicting configuration
20             actions wouldn't raise error on startup - the latest directive will
21             override previous -->
22        <transmogrifier:registerConfig
23            name="export"
24            title="Export pipeline configuration"
25            description="Customized for SimpleBlog/Quills content types content export pipeline."
26            configuration="export.cfg"
27            />
28
29        <!-- mark blog and blog entry objects so we can register export adapters for them -->
30        <five:implements
31            class="Products.SimpleBlog.content.Blog"
32            interface=".interfaces.IBlog"
33            />
34
35        <five:implements
36            class="Products.SimpleBlog.content.BlogEntry"
37            interface=".interfaces.IBlogEntry"
38            />
39
40        <five:implements
41            class="Products.ATContentTypes.content.file.ATFile"
42            interface="quintagroup.transmogrifier.interfaces.IATFile"
43            />
44
45        <five:implements
46            class="Products.ATContentTypes.content.image.ATImage"
47            interface="quintagroup.transmogrifier.interfaces.IATImage"
48            />
49
50        <!-- 'datacorrector' section adapters -->
51        <adapter
52            for=".interfaces.IBlog"
53            provides="quintagroup.transmogrifier.interfaces.IExportDataCorrector"
54            factory=".adapters.BlogExporter"
55            name="manifest"
56            />
57
58        <adapter
59            for=".interfaces.IBlogEntry"
60            provides="quintagroup.transmogrifier.interfaces.IImportDataCorrector"
61            factory=".adapters.BlogEntryExporter"
62            name="marshall"
63            />
64
65        <!-- 'itemmanipulator' section adapter -->
66        <adapter
67            for="quintagroup.transmogrifier.interfaces.IATFile"
68            provides=".interfaces.IExportItemManipulator"
69            factory=".adapters.PathRewriter"
70            />
71
72        <adapter
73            for="quintagroup.transmogrifier.interfaces.IATImage"
74            provides=".interfaces.IExportItemManipulator"
75            factory=".adapters.PathRewriter"
76            />
77
78    </configure>
79
80    <!-- next is for importing -->
81    <transmogrifier:stylesheet
82        source="marshall"
83        from="Blog"
84        to="Weblog"
85        file="blog-weblog.xsl"
86        />
87
88    <transmogrifier:stylesheet
89        source="marshall"
90        from="BlogEntry"
91        to="WeblogEntry"
92        file="blogentry-weblogentry.xsl"
93        />
94
95    <transmogrifier:stylesheet
96        source="marshall"
97        from="BlogFolder"
98        to="Folder"
99        file="blogfolder-folder.xsl"
100        />
101
102    <!-- next stylesheets are used when migrating to QuillsEnabled -->
103    <transmogrifier:stylesheet
104        source="marshall"
105        from="Blog"
106        to="Folder"
107        file="blog-folder.xsl"
108        />
109
110    <transmogrifier:stylesheet
111        source="marshall"
112        from="BlogEntry"
113        to="Document"
114        file="blogentry-document.xsl"
115        />
116
117</configure>
Note: See TracBrowser for help on using the repository browser.