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.ManifestSection" |
---|
23 | name="quintagroup.transmogrifier.manifest" |
---|
24 | /> |
---|
25 | |
---|
26 | <utility |
---|
27 | component=".marshall.MarshallSection" |
---|
28 | name="quintagroup.transmogrifier.marshall" |
---|
29 | /> |
---|
30 | |
---|
31 | <utility |
---|
32 | component=".propertymanager.PropertyManagerSection" |
---|
33 | name="quintagroup.transmogrifier.propertymanager" |
---|
34 | /> |
---|
35 | |
---|
36 | <utility |
---|
37 | component=".discussioncontainer.DiscussionContainerSection" |
---|
38 | name="quintagroup.transmogrifier.discussioncontainer" |
---|
39 | /> |
---|
40 | |
---|
41 | <utility |
---|
42 | component=".datacorrector.DataCorrectorSection" |
---|
43 | name="quintagroup.transmogrifier.datacorrector" |
---|
44 | /> |
---|
45 | |
---|
46 | <!-- registration of adapters for data corrector section --> |
---|
47 | <include package=".adapters" /> |
---|
48 | |
---|
49 | <utility |
---|
50 | component=".writer.WriterSection" |
---|
51 | name="quintagroup.transmogrifier.writer" |
---|
52 | /> |
---|
53 | |
---|
54 | <utility |
---|
55 | component=".reader.ReaderSection" |
---|
56 | name="quintagroup.transmogrifier.reader" |
---|
57 | /> |
---|
58 | |
---|
59 | <utility |
---|
60 | component=".manifest.ManifestImportSection" |
---|
61 | name="quintagroup.transmogrifier.manifestimport" |
---|
62 | /> |
---|
63 | |
---|
64 | <utility |
---|
65 | component=".substitution.SubstitutionSection" |
---|
66 | name="quintagroup.transmogrifier.substitution" |
---|
67 | /> |
---|
68 | |
---|
69 | <utility |
---|
70 | component=".xslt.XSLTSection" |
---|
71 | name="quintagroup.transmogrifier.xslt" |
---|
72 | /> |
---|
73 | |
---|
74 | <transmogrifier:registerConfig |
---|
75 | name="export" |
---|
76 | title="Export pipeline configuration" |
---|
77 | description="This is a Plone content export pipeline configuration." |
---|
78 | configuration="export.cfg" |
---|
79 | /> |
---|
80 | |
---|
81 | <!-- We registry this export step in zcml and it will override Plone's standard |
---|
82 | Content export step. Than we need to go in ZMI to Manage tab of portal_setup |
---|
83 | tool and delete old step. (I also detected that steps registered in zcml |
---|
84 | overriede those registered in profile without deleting them on manage tab) |
---|
85 | --> |
---|
86 | <gs:exportStep |
---|
87 | name="content" |
---|
88 | title="Content (transmogrifier)" |
---|
89 | description="Export the site's structure and content." |
---|
90 | handler=".exportimport.exportSiteStructure" |
---|
91 | /> |
---|
92 | |
---|
93 | <transmogrifier:registerConfig |
---|
94 | name="import" |
---|
95 | title="Import pipeline configuration" |
---|
96 | description="This is a Plone content import pipeline configuration." |
---|
97 | configuration="import.cfg" |
---|
98 | /> |
---|
99 | |
---|
100 | <!-- With import step we can't do the same. Plone's portal_setup tool currently |
---|
101 | works such that if we delete standard Content import step on Manage tab |
---|
102 | it will be recreated when rendering Import tab. (also this step is overriden |
---|
103 | when we import all steps, but old handler is used if we select only content |
---|
104 | step). |
---|
105 | |
---|
106 | <gs:importStep |
---|
107 | name="content" |
---|
108 | title="Content (transmogrifier)" |
---|
109 | description="Import the site's structure and content." |
---|
110 | handler=".exportimport.importSiteStructure" |
---|
111 | /> |
---|
112 | |
---|
113 | That's why we can go another way and register adapter which is looked up in |
---|
114 | standard handler. |
---|
115 | |
---|
116 | <adapter |
---|
117 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
118 | provides="Products.GenericSetup.interfaces.IFilesystemImporter" |
---|
119 | factory=".exportimport.PloneSiteImporter" |
---|
120 | /> |
---|
121 | --> |
---|
122 | |
---|
123 | <gs:importStep |
---|
124 | name="content" |
---|
125 | title="Content (transmogrifier)" |
---|
126 | description="Import the site's structure and content." |
---|
127 | handler=".exportimport.importSiteStructure" |
---|
128 | /> |
---|
129 | |
---|
130 | </configure> |
---|