collective / collective.nitf

A Dexterity-based content type inspired on the News Industry Text Format specification
8 stars 3 forks source link

AttributeError when upgrading from 1.0b3 to 1.0b5 #139

Closed winstonf88 closed 8 years ago

winstonf88 commented 8 years ago

I am getting this error when trying to upgrade from 1.0b3 to 1.0b5 and profile version 1006 to 1008 on Plone 4.3.3.

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 11, in prefs_reinstallProducts
   - <FSPythonScript at /Plone/portal_quickinstaller/prefs_reinstallProducts>
   - Line 11
  Module Products.CMFPlone.QuickInstallerTool, line 101, in upgradeProduct
  Module Products.GenericSetup.upgrade, line 140, in doStep
  Module brasil.gov.portal.upgrades.v10700.handler, line 34, in atualiza_produtos_terceiros
  Module brasil.gov.portal.upgrades, line 18, in upgrade_profile
  Module Products.GenericSetup.upgrade, line 140, in doStep
  Module collective.nitf.upgrades.v1008, line 15, in fix_collections
AttributeError: getRawQuery
hvelarde commented 8 years ago

@rodfersou please take a look on this and check if we need to fix something in the master branch also.

rodfersou commented 8 years ago

I have a plone site that throws this exception when try to upgrade:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.GenericSetup.tool, line 908, in manage_doUpgrades
  Module Products.GenericSetup.upgrade, line 140, in doStep
  Module collective.nitf.upgrades.v1008, line 18, in fix_collections
TypeError: 'CatalogContentListingObject' object has no attribute '__getitem__'
hvelarde commented 8 years ago

@rodfersou that's another issue; I will leave a reference here just for the records: https://github.com/collective/collective.nitf/pull/146