source: products/quintagroup.transmogrifier/trunk/quintagroup/transmogrifier/configure.zcml @ 319

Last change on this file since 319 was 319, checked in by mylan, 18 years ago

plone 2.1 version with blogging APIs support.

File size: 4.7 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    i18n_domain="quintagroup.transmogrifier">
7
8    <include package="collective.transmogrifier" file="meta.zcml" />
9    <include package="collective.transmogrifier" />
10    <include package="plone.app.transmogrifier" />
11
12    <!-- register our blueprints -->
13    <utility
14        component=".sitewalker.SiteWalkerSection"
15        name="quintagroup.transmogrifier.sitewalker"
16        />
17
18    <utility
19        component=".manifest.ManifestExporterSection"
20        name="quintagroup.transmogrifier.manifestexporter"
21        />
22
23    <utility
24        component=".manifest.ManifestImporterSection"
25        name="quintagroup.transmogrifier.manifestimporter"
26        />
27
28    <utility
29        component=".marshall.MarshallerSection"
30        name="quintagroup.transmogrifier.marshaller"
31        />
32
33    <utility
34        component=".marshall.DemarshallerSection"
35        name="quintagroup.transmogrifier.demarshaller"
36        />
37
38    <utility
39        component=".propertymanager.PropertiesExporterSection"
40        name="quintagroup.transmogrifier.propertiesexporter"
41        />
42
43    <utility
44        component=".propertymanager.PropertiesImporterSection"
45        name="quintagroup.transmogrifier.propertiesimporter"
46        />
47
48    <utility
49        component=".comments.CommentsExporterSection"
50        name="quintagroup.transmogrifier.commentsexporter"
51        />
52
53    <utility
54        component=".comments.CommentsImporterSection"
55        name="quintagroup.transmogrifier.commentsimporter"
56        />
57
58    <utility
59        component=".datacorrector.DataCorrectorSection"
60        name="quintagroup.transmogrifier.datacorrector"
61        />
62
63    <!-- registration of adapters for data corrector section -->
64    <include package=".adapters" />
65
66    <utility
67        component=".writer.WriterSection"
68        name="quintagroup.transmogrifier.writer"
69        />
70
71    <utility
72        component=".reader.ReaderSection"
73        name="quintagroup.transmogrifier.reader"
74        />
75
76    <utility
77        component=".substitution.SubstitutionSection"
78        name="quintagroup.transmogrifier.substitution"
79        />
80
81    <utility
82        component=".xslt.XSLTSection"
83        name="quintagroup.transmogrifier.xslt"
84        />
85
86    <utility
87        component=".logger.LoggerSection"
88        name="quintagroup.transmogrifier.logger"
89        />
90
91    <utility
92        component=".references.ReferencesImporterSection"
93        name="quintagroup.transmogrifier.referencesimporter"
94        />
95
96    <transmogrifier:registerConfig
97        name="export"
98        title="Export pipeline configuration"
99        description="This is a Plone content export pipeline configuration."
100        configuration="export.cfg"
101        />
102
103    <!-- We registry this export step in zcml and it will override Plone's standard
104         Content export step. Than we need to go in ZMI to Manage tab of portal_setup
105         tool and delete old step. (I also detected that steps registered in zcml
106         overriede those registered in profile without deleting them on manage tab)
107    -->
108    <gs:exportStep
109        name="content"
110        title="Content (transmogrifier)"
111        description="Export the site's structure and content."
112        handler=".exportimport.exportSiteStructure"
113        />
114
115    <transmogrifier:registerConfig
116        name="import"
117        title="Import pipeline configuration"
118        description="This is a Plone content import pipeline configuration."
119        configuration="import.cfg"
120        />
121
122    <!-- With import step we can't do the same. Plone's portal_setup tool currently
123         works such that if we delete standard Content import step on Manage tab
124         it will be recreated when rendering Import tab. (also this step is overriden
125         when we import all steps, but old handler is used if we select only content
126         step).
127
128         <gs:importStep
129            name="content"
130            title="Content (transmogrifier)"
131            description="Import the site's structure and content."
132            handler=".exportimport.importSiteStructure"
133            />
134
135         That's why we can go another way and register adapter which is looked up in
136         standard handler.
137
138         <adapter
139            for="Products.CMFPlone.interfaces.IPloneSiteRoot"
140            provides="Products.GenericSetup.interfaces.IFilesystemImporter"
141            factory=".exportimport.PloneSiteImporter"
142            />
143    -->
144
145    <gs:importStep
146        name="content"
147        title="Content (transmogrifier)"
148        description="Import the site's structure and content."
149        handler=".exportimport.importSiteStructure"
150        />
151
152</configure>
Note: See TracBrowser for help on using the repository browser.