source: products/quintagroup.transmogrifier/branches/ofs/quintagroup/transmogrifier/configure.zcml

Last change on this file was 1605, checked in by mylan, 14 years ago

Added ofsimporter section for possibility to import OFS Image and File objects

File size: 7.3 KB
Line 
1<configure
2    xmlns="http://namespaces.zope.org/zope"
3    xmlns:five="http://namespaces.zope.org/five"
4    xmlns:transmogrifier="http://namespaces.plone.org/transmogrifier"
5    xmlns:gs="http://namespaces.zope.org/genericsetup"
6    xmlns:browser="http://namespaces.zope.org/browser"
7    i18n_domain="quintagroup.transmogrifier">
8
9    <include package="collective.transmogrifier" file="meta.zcml" />
10    <include package="collective.transmogrifier" />
11    <include package="plone.app.transmogrifier" />
12
13    <!-- register our blueprints -->
14    <utility
15        component=".sitewalker.SiteWalkerSection"
16        name="quintagroup.transmogrifier.sitewalker"
17        />
18
19    <utility
20        component=".manifest.ManifestExporterSection"
21        name="quintagroup.transmogrifier.manifestexporter"
22        />
23
24    <utility
25        component=".manifest.ManifestImporterSection"
26        name="quintagroup.transmogrifier.manifestimporter"
27        />
28
29    <utility
30        component=".marshall.MarshallerSection"
31        name="quintagroup.transmogrifier.marshaller"
32        />
33
34    <utility
35        component=".marshall.DemarshallerSection"
36        name="quintagroup.transmogrifier.demarshaller"
37        />
38
39    <utility
40        component=".propertymanager.PropertiesExporterSection"
41        name="quintagroup.transmogrifier.propertiesexporter"
42        />
43
44    <utility
45        component=".propertymanager.PropertiesImporterSection"
46        name="quintagroup.transmogrifier.propertiesimporter"
47        />
48
49    <utility
50        component=".comments.CommentsExporterSection"
51        name="quintagroup.transmogrifier.commentsexporter"
52        />
53
54    <utility
55        component=".comments.CommentsImporterSection"
56        name="quintagroup.transmogrifier.commentsimporter"
57        />
58
59    <utility
60        component=".datacorrector.DataCorrectorSection"
61        name="quintagroup.transmogrifier.datacorrector"
62        />
63
64    <!-- registration of adapters for data corrector section -->
65    <include package=".adapters" />
66
67    <utility
68        component=".writer.WriterSection"
69        name="quintagroup.transmogrifier.writer"
70        />
71
72    <utility
73        component=".reader.ReaderSection"
74        name="quintagroup.transmogrifier.reader"
75        />
76
77    <utility
78        component=".substitution.SubstitutionSection"
79        name="quintagroup.transmogrifier.substitution"
80        />
81
82    <utility
83        component=".xslt.XSLTSection"
84        name="quintagroup.transmogrifier.xslt"
85        />
86
87    <utility
88        component=".logger.LoggerSection"
89        name="quintagroup.transmogrifier.logger"
90        />
91
92    <utility
93        component=".references.ReferencesImporterSection"
94        name="quintagroup.transmogrifier.referencesimporter"
95        />
96
97    <utility
98        component=".binary.FileExporterSection"
99        name="quintagroup.transmogrifier.fileexporter"
100        />
101
102    <utility
103        component=".binary.FileImporterSection"
104        name="quintagroup.transmogrifier.fileimporter"
105        />
106
107    <utility
108        component=".catalogsource.CatalogSourceSection"
109        name="quintagroup.transmogrifier.catalogsource"
110        />
111
112    <utility
113        component=".flushcache.FlushCacheSection"
114        name="quintagroup.transmogrifier.flushcache"
115        provides="collective.transmogrifier.interfaces.ISectionBlueprint"
116        />
117
118    <utility
119        component=".interfacemanager.InterfacesExporterSection"
120        name="quintagroup.transmogrifier.interfacesexporter"
121        />
122
123    <utility
124        component=".interfacemanager.InterfacesImporterSection"
125        name="quintagroup.transmogrifier.interfacesimporter"
126        />
127
128    <utility
129        component=".portlets.PortletsExporterSection"
130        name="quintagroup.transmogrifier.portletsexporter"
131        />
132
133    <utility
134        component=".portlets.PortletsImporterSection"
135        name="quintagroup.transmogrifier.portletsimporter"
136        />
137
138    <utility
139        component=".constructor.ConstructorSection"
140        name="quintagroup.transmogrifier.extendedconstructor"
141        />
142
143    <utility
144        component=".ofsmanager.OFSExporterSection"
145        name="quintagroup.transmogrifier.ofsexporter"
146        />
147
148    <utility
149        component=".ofsmanager.OFSImporterSection"
150        name="quintagroup.transmogrifier.ofsimporter"
151        />
152
153    <utility
154        component=".utilities.FileFTIUtility"
155        provides=".interfaces.IFTIConstructor4MetaType"
156        name="File"
157        />
158
159    <utility
160        component=".utilities.ImageFTIUtility"
161        provides=".interfaces.IFTIConstructor4MetaType"
162        name="Image"
163        />
164
165
166    <adapter factory=".portlets.PortletAssignmentExportImportHandler" />
167
168    <transmogrifier:registerConfig
169        name="export"
170        title="Export pipeline configuration"
171        description="This is a Plone content export pipeline configuration."
172        configuration="export.cfg"
173        />
174
175    <!-- We registry this export step in zcml and it will override Plone's standard
176         Content export step. Than we need to go in ZMI to Manage tab of portal_setup
177         tool and delete old step. (I also detected that steps registered in zcml
178         overriede those registered in profile without deleting them on manage tab)
179    -->
180    <gs:exportStep
181        name="content_quinta"
182        title="Content (transmogrifier)"
183        description="Export the site's structure and content."
184        handler=".exportimport.exportSiteStructure"
185        />
186
187    <transmogrifier:registerConfig
188        name="import"
189        title="Import pipeline configuration"
190        description="This is a Plone content import pipeline configuration."
191        configuration="import.cfg"
192        />
193
194    <!-- With import step we can't do the same. Plone's portal_setup tool currently
195         works such that if we delete standard Content import step on Manage tab
196         it will be recreated when rendering Import tab. (also this step is overriden
197         when we import all steps, but old handler is used if we select only content
198         step).
199
200         <gs:importStep
201            name="content_quinta"
202            title="Content (transmogrifier)"
203            description="Import the site's structure and content."
204            handler=".exportimport.importSiteStructure"
205            />
206
207         That's why we can go another way and register adapter which is looked up in
208         standard handler.
209
210         <adapter
211            for="Products.CMFPlone.interfaces.IPloneSiteRoot"
212            provides="Products.GenericSetup.interfaces.IFilesystemImporter"
213            factory=".exportimport.PloneSiteImporter"
214            />
215    -->
216
217    <gs:importStep
218        name="content_quinta"
219        title="Content (transmogrifier)"
220        description="Import the site's structure and content."
221        handler=".exportimport.importSiteStructure"
222        />
223
224    <browser:page
225        name="pipeline-config"
226        for="Products.CMFPlone.interfaces.IPloneSiteRoot"
227        permission="zope2.ViewManagementScreens"
228        class=".configview.PipelineConfigView"
229        template="pipelineconfig.pt"
230        />
231
232    <gs:registerProfile
233        name="default"
234        title="quintagroup.transmogrifier (adds Content Migration configlet)"
235        directory="profiles/default"
236        description="Profile that adds Content Migration configlet."
237        for="Products.CMFPlone.interfaces.IPloneSiteRoot"
238        provides="Products.GenericSetup.interfaces.EXTENSION"
239        />
240
241</configure>
Note: See TracBrowser for help on using the repository browser.