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

Last change on this file since 288 was 288, checked in by chervol, 18 years ago

utils update

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