Skip to content

Commit

Permalink
Pin version of Products.ResourceRegistries >=2.2.12 to fix upgrade st…
Browse files Browse the repository at this point in the history
…ep (#34)
  • Loading branch information
rodfersou authored and hvelarde committed Aug 17, 2016
1 parent 13907dd commit 23bb65e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
1.0 (unreleased)
----------------

- Nothing changed yet.
- Pin version of Products.ResourceRegistries >=2.2.12 to fix upgrade step.
[rodfersou, hvelarde]


1.0rc1 (2016-07-11)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'plone.directives.form',
'Products.CMFPlone >=4.3',
'Products.GenericSetup',
'Products.ResourceRegistries >=2.2.12',
'setuptools',
'zope.i18nmessageid',
'zope.interface',
Expand Down
4 changes: 1 addition & 3 deletions src/collective/texttospeech/upgrades/v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ def pin_responsivevoice(setup_tool):

portal_js = api.portal.get_tool('portal_javascripts')
if OLD_JS in portal_js.getResourceIds():
# HACK: can not use portal_js.renameResource
# see: https://github.com/plone/Products.ResourceRegistries/pull/20
portal_js.getResource(OLD_JS)._data['id'] = NEW_JS
portal_js.renameResource(OLD_JS, NEW_JS)
assert NEW_JS in portal_js.getResourceIds()
logger.info('ResponsiveVoice version updated to 1.4.')

0 comments on commit 23bb65e

Please sign in to comment.