-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from eea/develop
Fix other organisations metadata
- Loading branch information
Showing
8 changed files
with
61 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,19 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:zcml="http://namespaces.zope.org/zcml" | ||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup" | ||
xmlns:five="http://namespaces.zope.org/five" | ||
xmlns:i18n="http://namespaces.zope.org/i18n" | ||
i18n_domain="eea"> | ||
<configure xmlns="http://namespaces.zope.org/zope" | ||
xmlns:zcml="http://namespaces.zope.org/zcml" | ||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup" | ||
xmlns:five="http://namespaces.zope.org/five" | ||
xmlns:i18n="http://namespaces.zope.org/i18n" i18n_domain="eea"> | ||
|
||
<i18n:registerTranslations directory="locales" /> | ||
<i18n:registerTranslations directory="locales" /> | ||
|
||
<include file="profiles.zcml" /> | ||
<include package=".browser" /> | ||
<include package=".behaviors" /> | ||
<include package=".upgrades" /> | ||
<include file="profiles.zcml" /> | ||
<include package=".browser" /> | ||
<include package=".behaviors" /> | ||
<include package=".upgrades" /> | ||
|
||
<adapter factory=".indexer.temporal_coverage_indexer" name="temporal_coverage" /> | ||
<adapter factory=".indexer.data_provenance_indexer" name="data_provenance" /> | ||
<adapter factory=".indexer.temporal_coverage_indexer" name="temporal_coverage" /> | ||
<adapter factory=".indexer.data_provenance_indexer" name="data_provenance" /> | ||
|
||
<utility | ||
name="eea.coremetadata.other_organisations" | ||
component=".vocabulary.OtherOrganisationsVocabularyFactory" | ||
/> | ||
<utility | ||
factory=".index_modifiers.OtherOrganisations" | ||
provides="plone.app.querystring.interfaces.IParsedQueryIndexModifier" | ||
name="taxonomy_eeaorganisationstaxonomy" | ||
/> | ||
<utility name="eea.coremetadata.other_organisations" component=".vocabulary.OtherOrganisationsVocabularyFactory" /> | ||
<!-- <utility factory=".index_modifiers.OtherOrganisations" provides="plone.app.querystring.interfaces.IParsedQueryIndexModifier" name="taxonomy_eeaorganisationstaxonomy" /> --> | ||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
""" Upgrade to 5.0 """ | ||
from zope.configuration.name import resolve | ||
|
||
|
||
def to_50(context): | ||
""" Remove EEA Coremetadata Organisations taxonomy behavior and indexer """ | ||
sm = context.aq_parent.getSiteManager() | ||
|
||
# Remove Adapter other_organisations indexer | ||
required = [resolve('plone.dexterity.interfaces.IDexterityContent'), | ||
resolve('Products.ZCatalog.interfaces.IZCatalog')] | ||
provided = resolve('plone.indexer.interfaces.IIndexer') | ||
name = 'other_organisations' | ||
sm.adapters.unregister(required=required, provided=provided, name=name) | ||
|
||
# Remove Utility other_organisations behavior | ||
provided = resolve('plone.behavior.interfaces.IBehavior') | ||
name = 'other_organisations' | ||
ofs_id = 'plone.behavior.interfaces.IBehavior-other_organisations' | ||
if ofs_id in sm.objectIds(): | ||
sm._delObject(ofs_id, suppress_events=True) | ||
|
||
sm.unregisterUtility(provided=provided, name=name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.2 | ||
4.3 |