source: products/quintagroup.transmogrify.simpleblog2quills/trunk/quintagroup/transmogrify/simpleblog2quills/configure.zcml @ 1490

Last change on this file since 1490 was 1490, checked in by koval, 9 years ago

renaming all references of quintagroup.transmogrifier.simpleblog2quills

File size: 5.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.transmogrify.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        <utility
20            component=".adapters.ImageFolderSection"
21            name="quintagroup.transmogrify.simpleblog2quills.imagefolder"
22            provides="collective.transmogrifier.interfaces.ISectionBlueprint"
23            />
24
25        <!-- In Plone 2.1 overrides.zcml isn't loaded, but conflicting configuration
26             actions wouldn't raise error on startup - the latest directive will
27             override previous -->
28        <transmogrifier:registerConfig
29            name="export"
30            title="Export pipeline configuration"
31            description="Customized for SimpleBlog/Quills content types content export pipeline."
32            configuration="export.cfg"
33            />
34
35        <!-- mark blog and blog entry objects so we can register export adapters for them -->
36
37        <five:implements
38            class="Products.SimpleBlog.content.Blog"
39            interface=".interfaces.IBlog"
40            />
41
42        <five:implements
43            class="Products.SimpleBlog.content.BlogFolder"
44            interface=".interfaces.IBlogFolder"
45            />
46
47        <five:implements
48            class="Products.SimpleBlog.content.BlogEntry"
49            interface=".interfaces.IBlogEntry"
50            />
51
52        <five:implements
53            class="Products.ATContentTypes.content.file.ATFile"
54            interface="quintagroup.transmogrifier.interfaces.IATFile"
55            />
56
57        <five:implements
58            class="Products.ATContentTypes.content.image.ATImage"
59            interface="quintagroup.transmogrifier.interfaces.IATImage"
60            />
61
62        <!-- 'datacorrector' section adapters -->
63        <adapter
64            for=".interfaces.IBlog"
65            provides="quintagroup.transmogrifier.interfaces.IExportDataCorrector"
66            factory=".adapters.BlogManifest"
67            name="manifest"
68            />
69
70        <adapter
71            for=".interfaces.IBlogFolder"
72            provides="quintagroup.transmogrifier.interfaces.IExportDataCorrector"
73            factory=".adapters.BlogFolderManifest"
74            name="manifest"
75            />
76
77        <adapter
78            for=".interfaces.IBlogEntry"
79            provides="quintagroup.transmogrifier.interfaces.IExportDataCorrector"
80            factory=".adapters.BlogEntryExporter"
81            name="marshall"
82            />
83
84        <!-- 'itemmanipulator' section adapter -->
85        <adapter
86            for=".interfaces.IBlogEntry"
87            provides=".interfaces.IExportItemManipulator"
88            factory=".adapters.BlogEntryManifest"
89            />
90
91        <adapter
92            for="quintagroup.transmogrifier.interfaces.IATFile"
93            provides=".interfaces.IExportItemManipulator"
94            factory=".adapters.PathRewriter"
95            />
96
97        <adapter
98            for="quintagroup.transmogrifier.interfaces.IATImage"
99            provides=".interfaces.IExportItemManipulator"
100            factory=".adapters.PathRewriter"
101            />
102
103    </configure>
104
105    <!-- next is for importing -->
106    <transmogrifier:stylesheet
107        source="marshall"
108        from="Blog"
109        to="Weblog"
110        file="blog-weblog.xsl"
111        />
112
113    <transmogrifier:stylesheet
114        source="marshall"
115        from="BlogEntry"
116        to="WeblogEntry"
117        file="blogentry-weblogentry.xsl"
118        />
119
120    <transmogrifier:stylesheet
121        source="marshall"
122        from="BlogFolder"
123        to="Folder"
124        file="blogfolder-folder.xsl"
125        />
126
127    <!-- next stylesheets are used when migrating to QuillsEnabled -->
128    <transmogrifier:stylesheet
129        source="marshall"
130        from="Blog"
131        to="Large Plone Folder"
132        file="blog-largefolder.xsl"
133        />
134
135    <transmogrifier:stylesheet
136        source="marshall"
137        from="BlogFolder"
138        to="Large Plone Folder"
139        file="blogfolder-largefolder.xsl"
140        />
141
142    <transmogrifier:stylesheet
143        source="marshall"
144        from="BlogEntry"
145        to="Document"
146        file="blogentry-document.xsl"
147        />
148
149    <adapter
150        for="quintagroup.transmogrify.simpleblog2quills.interfaces.IBaseObject"
151        provides="quintagroup.transmogrifier.interfaces.IImportDataCorrector"
152        factory=".adapters.WorkflowImporter"
153        name="marshall"
154        />
155
156    <configure zcml:condition="installed Products.QuillsEnabled">
157
158        <utility
159            component=".activator.BlogActivatorSection"
160            name="quintagroup.transmogrify.simpleblog2quills.activator"
161            provides="collective.transmogrifier.interfaces.ISectionBlueprint"
162            />
163
164    </configure>
165
166</configure>
Note: See TracBrowser for help on using the repository browser.