[275] | 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" |
---|
[679] | 6 | xmlns:browser="http://namespaces.zope.org/browser" |
---|
[275] | 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 |
---|
[283] | 20 | component=".manifest.ManifestExporterSection" |
---|
| 21 | name="quintagroup.transmogrifier.manifestexporter" |
---|
[275] | 22 | /> |
---|
| 23 | |
---|
| 24 | <utility |
---|
[283] | 25 | component=".manifest.ManifestImporterSection" |
---|
| 26 | name="quintagroup.transmogrifier.manifestimporter" |
---|
| 27 | /> |
---|
| 28 | |
---|
| 29 | <utility |
---|
[278] | 30 | component=".marshall.MarshallerSection" |
---|
| 31 | name="quintagroup.transmogrifier.marshaller" |
---|
[275] | 32 | /> |
---|
| 33 | |
---|
| 34 | <utility |
---|
[278] | 35 | component=".marshall.DemarshallerSection" |
---|
| 36 | name="quintagroup.transmogrifier.demarshaller" |
---|
| 37 | /> |
---|
| 38 | |
---|
| 39 | <utility |
---|
[279] | 40 | component=".propertymanager.PropertiesExporterSection" |
---|
| 41 | name="quintagroup.transmogrifier.propertiesexporter" |
---|
[275] | 42 | /> |
---|
| 43 | |
---|
| 44 | <utility |
---|
[279] | 45 | component=".propertymanager.PropertiesImporterSection" |
---|
| 46 | name="quintagroup.transmogrifier.propertiesimporter" |
---|
| 47 | /> |
---|
| 48 | |
---|
| 49 | <utility |
---|
[282] | 50 | component=".comments.CommentsExporterSection" |
---|
[280] | 51 | name="quintagroup.transmogrifier.commentsexporter" |
---|
[275] | 52 | /> |
---|
| 53 | |
---|
| 54 | <utility |
---|
[282] | 55 | component=".comments.CommentsImporterSection" |
---|
[280] | 56 | name="quintagroup.transmogrifier.commentsimporter" |
---|
| 57 | /> |
---|
| 58 | |
---|
| 59 | <utility |
---|
[277] | 60 | component=".datacorrector.DataCorrectorSection" |
---|
| 61 | name="quintagroup.transmogrifier.datacorrector" |
---|
[275] | 62 | /> |
---|
| 63 | |
---|
[277] | 64 | <!-- registration of adapters for data corrector section --> |
---|
| 65 | <include package=".adapters" /> |
---|
| 66 | |
---|
[275] | 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 | |
---|
[282] | 87 | <utility |
---|
| 88 | component=".logger.LoggerSection" |
---|
| 89 | name="quintagroup.transmogrifier.logger" |
---|
| 90 | /> |
---|
| 91 | |
---|
[288] | 92 | <utility |
---|
| 93 | component=".references.ReferencesImporterSection" |
---|
| 94 | name="quintagroup.transmogrifier.referencesimporter" |
---|
| 95 | /> |
---|
| 96 | |
---|
[370] | 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 | |
---|
[371] | 107 | <utility |
---|
| 108 | component=".catalogsource.CatalogSourceSection" |
---|
| 109 | name="quintagroup.transmogrifier.catalogsource" |
---|
| 110 | /> |
---|
| 111 | |
---|
[1381] | 112 | <utility |
---|
| 113 | component=".flushcache.FlushCacheSection" |
---|
| 114 | name="quintagroup.transmogrifier.flushcache" |
---|
| 115 | provides="collective.transmogrifier.interfaces.ISectionBlueprint" |
---|
| 116 | /> |
---|
| 117 | |
---|
[275] | 118 | <transmogrifier:registerConfig |
---|
| 119 | name="export" |
---|
| 120 | title="Export pipeline configuration" |
---|
| 121 | description="This is a Plone content export pipeline configuration." |
---|
| 122 | configuration="export.cfg" |
---|
| 123 | /> |
---|
| 124 | |
---|
| 125 | <!-- We registry this export step in zcml and it will override Plone's standard |
---|
| 126 | Content export step. Than we need to go in ZMI to Manage tab of portal_setup |
---|
| 127 | tool and delete old step. (I also detected that steps registered in zcml |
---|
| 128 | overriede those registered in profile without deleting them on manage tab) |
---|
| 129 | --> |
---|
| 130 | <gs:exportStep |
---|
| 131 | name="content" |
---|
| 132 | title="Content (transmogrifier)" |
---|
| 133 | description="Export the site's structure and content." |
---|
| 134 | handler=".exportimport.exportSiteStructure" |
---|
| 135 | /> |
---|
| 136 | |
---|
| 137 | <transmogrifier:registerConfig |
---|
| 138 | name="import" |
---|
| 139 | title="Import pipeline configuration" |
---|
| 140 | description="This is a Plone content import pipeline configuration." |
---|
| 141 | configuration="import.cfg" |
---|
| 142 | /> |
---|
| 143 | |
---|
| 144 | <!-- With import step we can't do the same. Plone's portal_setup tool currently |
---|
| 145 | works such that if we delete standard Content import step on Manage tab |
---|
| 146 | it will be recreated when rendering Import tab. (also this step is overriden |
---|
| 147 | when we import all steps, but old handler is used if we select only content |
---|
| 148 | step). |
---|
| 149 | |
---|
| 150 | <gs:importStep |
---|
| 151 | name="content" |
---|
| 152 | title="Content (transmogrifier)" |
---|
| 153 | description="Import the site's structure and content." |
---|
| 154 | handler=".exportimport.importSiteStructure" |
---|
| 155 | /> |
---|
| 156 | |
---|
| 157 | That's why we can go another way and register adapter which is looked up in |
---|
| 158 | standard handler. |
---|
| 159 | |
---|
| 160 | <adapter |
---|
| 161 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
| 162 | provides="Products.GenericSetup.interfaces.IFilesystemImporter" |
---|
| 163 | factory=".exportimport.PloneSiteImporter" |
---|
| 164 | /> |
---|
| 165 | --> |
---|
| 166 | |
---|
| 167 | <gs:importStep |
---|
| 168 | name="content" |
---|
| 169 | title="Content (transmogrifier)" |
---|
| 170 | description="Import the site's structure and content." |
---|
| 171 | handler=".exportimport.importSiteStructure" |
---|
| 172 | /> |
---|
| 173 | |
---|
[679] | 174 | <browser:page |
---|
| 175 | name="pipeline-config" |
---|
| 176 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
| 177 | permission="zope2.ViewManagementScreens" |
---|
| 178 | class=".configview.PipelineConfigView" |
---|
| 179 | template="pipelineconfig.pt" |
---|
| 180 | /> |
---|
| 181 | |
---|
| 182 | <gs:registerProfile |
---|
| 183 | name="default" |
---|
[1243] | 184 | title="quintagroup.transmogrifier (adds Content Migration configlet)" |
---|
[679] | 185 | directory="profiles/default" |
---|
| 186 | description="Profile that adds Content Migration configlet." |
---|
| 187 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
| 188 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
| 189 | /> |
---|
| 190 | |
---|
[275] | 191 | </configure> |
---|