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:zcml="http://namespaces.zope.org/zcml" |
---|
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 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
18 | /> |
---|
19 | |
---|
20 | <utility |
---|
21 | component=".manifest.ManifestExporterSection" |
---|
22 | name="quintagroup.transmogrifier.manifestexporter" |
---|
23 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
24 | /> |
---|
25 | |
---|
26 | <utility |
---|
27 | component=".manifest.ManifestImporterSection" |
---|
28 | name="quintagroup.transmogrifier.manifestimporter" |
---|
29 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
30 | /> |
---|
31 | |
---|
32 | <utility |
---|
33 | component=".marshall.MarshallerSection" |
---|
34 | name="quintagroup.transmogrifier.marshaller" |
---|
35 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
36 | /> |
---|
37 | |
---|
38 | <utility |
---|
39 | component=".marshall.DemarshallerSection" |
---|
40 | name="quintagroup.transmogrifier.demarshaller" |
---|
41 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
42 | /> |
---|
43 | |
---|
44 | <utility |
---|
45 | component=".propertymanager.PropertiesExporterSection" |
---|
46 | name="quintagroup.transmogrifier.propertiesexporter" |
---|
47 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
48 | /> |
---|
49 | |
---|
50 | <utility |
---|
51 | component=".propertymanager.PropertiesImporterSection" |
---|
52 | name="quintagroup.transmogrifier.propertiesimporter" |
---|
53 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
54 | /> |
---|
55 | |
---|
56 | <utility |
---|
57 | component=".comments.CommentsExporterSection" |
---|
58 | name="quintagroup.transmogrifier.commentsexporter" |
---|
59 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
60 | /> |
---|
61 | |
---|
62 | <utility |
---|
63 | component=".comments.CommentsImporterSection" |
---|
64 | name="quintagroup.transmogrifier.commentsimporter" |
---|
65 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
66 | /> |
---|
67 | |
---|
68 | <utility |
---|
69 | component=".datacorrector.DataCorrectorSection" |
---|
70 | name="quintagroup.transmogrifier.datacorrector" |
---|
71 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
72 | /> |
---|
73 | |
---|
74 | <!-- registration of adapters for data corrector section --> |
---|
75 | <include package=".adapters" /> |
---|
76 | |
---|
77 | <utility |
---|
78 | component=".writer.WriterSection" |
---|
79 | name="quintagroup.transmogrifier.writer" |
---|
80 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
81 | /> |
---|
82 | |
---|
83 | <utility |
---|
84 | component=".reader.ReaderSection" |
---|
85 | name="quintagroup.transmogrifier.reader" |
---|
86 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
87 | /> |
---|
88 | |
---|
89 | <utility |
---|
90 | component=".substitution.SubstitutionSection" |
---|
91 | name="quintagroup.transmogrifier.substitution" |
---|
92 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
93 | /> |
---|
94 | |
---|
95 | <utility |
---|
96 | component=".xslt.XSLTSection" |
---|
97 | name="quintagroup.transmogrifier.xslt" |
---|
98 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
99 | /> |
---|
100 | |
---|
101 | <utility |
---|
102 | component=".logger.LoggerSection" |
---|
103 | name="quintagroup.transmogrifier.logger" |
---|
104 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
105 | /> |
---|
106 | |
---|
107 | <utility |
---|
108 | component=".references.ReferencesImporterSection" |
---|
109 | name="quintagroup.transmogrifier.referencesimporter" |
---|
110 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
111 | /> |
---|
112 | |
---|
113 | <utility |
---|
114 | component=".binary.FileExporterSection" |
---|
115 | name="quintagroup.transmogrifier.fileexporter" |
---|
116 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
117 | /> |
---|
118 | |
---|
119 | <utility |
---|
120 | component=".binary.FileImporterSection" |
---|
121 | name="quintagroup.transmogrifier.fileimporter" |
---|
122 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
123 | /> |
---|
124 | |
---|
125 | <utility |
---|
126 | component=".catalogsource.CatalogSourceSection" |
---|
127 | name="quintagroup.transmogrifier.catalogsource" |
---|
128 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
129 | /> |
---|
130 | |
---|
131 | <utility |
---|
132 | component=".flushcache.FlushCacheSection" |
---|
133 | name="quintagroup.transmogrifier.flushcache" |
---|
134 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
135 | /> |
---|
136 | |
---|
137 | <transmogrifier:registerConfig |
---|
138 | name="export" |
---|
139 | title="Export pipeline configuration" |
---|
140 | description="This is a Plone content export pipeline configuration." |
---|
141 | configuration="export.cfg" |
---|
142 | /> |
---|
143 | |
---|
144 | <transmogrifier:registerConfig |
---|
145 | name="import" |
---|
146 | title="Import pipeline configuration" |
---|
147 | description="This is a Plone content import pipeline configuration." |
---|
148 | configuration="import.cfg" |
---|
149 | /> |
---|
150 | |
---|
151 | <!-- conditional registration of gs steps --> |
---|
152 | <configure |
---|
153 | zcml:condition="installed Products.GenericSetup" |
---|
154 | xmlns:gs="http://namespaces.zope.org/genericsetup"> |
---|
155 | |
---|
156 | <!-- We registry this export step in zcml and it will override Plone's standard |
---|
157 | Content export step. Than we need to go in ZMI to Manage tab of portal_setup |
---|
158 | tool and delete old step. (I also detected that steps registered in zcml |
---|
159 | overriede those registered in profile without deleting them on manage tab) |
---|
160 | --> |
---|
161 | |
---|
162 | <!-- <gs:exportStep |
---|
163 | name="content" |
---|
164 | title="Content (transmogrifier)" |
---|
165 | description="Export the site's structure and content." |
---|
166 | handler=".exportimport.exportSiteStructure" |
---|
167 | />--> |
---|
168 | |
---|
169 | <!-- With import step we can't do the same. Plone's portal_setup tool currently |
---|
170 | works such that if we delete standard Content import step on Manage tab |
---|
171 | it will be recreated when rendering Import tab. (also this step is overriden |
---|
172 | when we import all steps, but old handler is used if we select only content |
---|
173 | step). |
---|
174 | |
---|
175 | <gs:importStep |
---|
176 | name="content" |
---|
177 | title="Content (transmogrifier)" |
---|
178 | description="Import the site's structure and content." |
---|
179 | handler=".exportimport.importSiteStructure" |
---|
180 | /> |
---|
181 | |
---|
182 | That's why we can go another way and register adapter which is looked up in |
---|
183 | standard handler. |
---|
184 | |
---|
185 | <adapter |
---|
186 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
187 | provides="Products.GenericSetup.interfaces.IFilesystemImporter" |
---|
188 | factory=".exportimport.PloneSiteImporter" |
---|
189 | /> |
---|
190 | --> |
---|
191 | |
---|
192 | <!-- <gs:importStep |
---|
193 | name="content" |
---|
194 | title="Content (transmogrifier)" |
---|
195 | description="Import the site's structure and content." |
---|
196 | handler=".exportimport.importSiteStructure" |
---|
197 | />--> |
---|
198 | |
---|
199 | </configure> |
---|
200 | |
---|
201 | <!-- implements for Plone 2.1 --> |
---|
202 | <five:implements |
---|
203 | class="Products.Archetypes.BaseFolder.BaseFolderMixin" |
---|
204 | interface=".interfaces.IBaseFolder" |
---|
205 | /> |
---|
206 | |
---|
207 | <five:implements |
---|
208 | class="OFS.PropertyManager.PropertyManager" |
---|
209 | interface=".interfaces.IPropertyManager" |
---|
210 | /> |
---|
211 | |
---|
212 | <five:implements |
---|
213 | class="Products.CMFPlone.Portal.PloneSite" |
---|
214 | interface="zope.app.annotation.interfaces.IAttributeAnnotatable" |
---|
215 | /> |
---|
216 | |
---|
217 | <!-- registering view for pipeline configuration --> |
---|
218 | <five:traversable |
---|
219 | class="Products.CMFPlone.Portal.PloneSite" |
---|
220 | /> |
---|
221 | |
---|
222 | <browser:page |
---|
223 | name="pipeline-config" |
---|
224 | for="collective.transmogrifier.interfaces.IFolderish" |
---|
225 | permission="zope2.ViewManagementScreens" |
---|
226 | class=".configview.PipelineConfigView" |
---|
227 | template="pipelineconfig.pt" |
---|
228 | /> |
---|
229 | |
---|
230 | </configure> |
---|