You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2016-07-18T15:32:15 ERROR Zope.SiteErrorLog http://legacy-cte-cnx-dev.cnx.org/GroupWorkspaces/wg588/Module.2016-07-18.2111/publishContent
Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__
Module Products.CMFFormController.Script, line 145, in __call__
Module Products.CMFCore.FSPythonScript, line 108, in __call__
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Products.PloneHotfix20110531, line 106, in _patched_bindAndExec
Module Products.PloneHotfix20130618.spamProtect, line 35, in _patched_bindAndExec
Module Products.PloneHotfix20121106.python_scripts, line 63, in _patched_bindAndExec
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 164, in _exec
Module None, line 35, in publishContent
- <FSControllerPythonScript at /plone/publishContent used for /plone/GroupWorkspaces/wg588/Module.2016-07-18.2111>
- Line 35
Module Products.RhaptosRepository.Repository, line 629, in publishObject
Module Products.RhaptosModuleStorage.ModuleVersionFolder, line 148, in checkinResource
CommitError: Version mismatch: version 1.2 checked out, but latest is 1.1
I manually updated the versions and the module published:
>>> m = app.plone.GroupWorkspaces.wg588['Module.2016-07-18.3655']
>>> m.getParent()
/usr/local/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module
DeprecationWarning)
<ModuleView at /plone/content/m62586/1.2>
>>> m
<ModuleEditor at /plone/GroupWorkspaces/wg588/Module.2016-07-18.3655>
>>> m.getMetadata()
{'abstract': '<para>By the end of this section, you will be able to:</para>\r\n<list>\r\n<item>Discuss the importance of studying economics</item>\r\n<item>Explain the relationship between production and division of labor</item>\r\n<item>Evaluate the significance of scarcity</item>\r\n</list>', 'revised': DateTime('2016/07/18 15:37:17.272 GMT-5'), 'has_attribution_note': False, 'pub_authors': ('rich',), 'roles': {}, 'keywords': ('Adam Smith', 'comparative advantage', 'core competency', 'division of labor', 'economics', 'economies of scale', 'scarcity', 'specialization'), 'import_authors': [], 'subject': ('Science and Technology',), 'parent': {'url': <bound method ModuleView.url of <ModuleView at /plone/content/m62586/1.2>>}, 'objectId': None, 'title': 'What Is Economics, and Why Is It Important? + Sim', 'is_imported': False, 'version': '1.2', 'pub_maintainers': ('rich',), 'pub_licensors': ('rich',), 'added': ['projectilemotionsim.png'], 'repository': 'plone/content', 'maintainers': ('rich',), 'authors': ('rich',), 'removed': [], 'collaborators': ('rich',), 'licensors': ('rich',), 'license': 'http://creativecommons.org/licenses/by/4.0/', 'language': 'en', 'created': DateTime('2016/07/18 15:36:55.383 GMT-5'), 'parentAuthors': ('rich',)}
>>> m.version
'1.2'
>>> import transaction
>>> m.version = '1.1'
>>> m.reindexObject()
>>> transaction.commit()
https://trello.com/c/gENNmgRx/342-bug-publishing-fails-for-new-a-derived-copies
The text was updated successfully, but these errors were encountered: