Hi,

we are trying to migrate our site from 2.1.4 to 2.5.5 and have been confronted with a number of problems. - On doing an update schema we lose all our folder display settings (see this thread http://plone.org/support/forums/general#nabble-td2539512). To get around this problem we have written a script to pick up all of the layout and default_page attributes which we run once we have finished doing the update schema to put back the settings.

- Now we discover that it is impossible to do a clear and rebuild of the catalog once we have done the update schema (before the clear and rebuild works ok) because we get a UnicodeEncodeError (see traceback below). We tried a number of things to find out what object is causing the problem, including deleting the portal_catalog and adding a new one and then doing a Find Objects of each content type one by one. It appears using this method that the object is of ATDocument type (we have about 10k of these...). We tried to get a log of the objects indexed by changing the "Log progress of reindexing every N objects to the Zope logger figure" but we can't find a trace of these logs anywhere.

So my questions are:
- how can we find the identity of the offending object in order to remedy the problem? Putting a breakpoint in the code seems impossible with the thousands of objects we have... - is there any way we can refresh our products (and the corresponding objects we have) without having to do an update_schema? It seems crazy that the introductory text of the update schema page ("This is an experimental mechanism for updating your existing objects when you update an Archetypes class's schema.") is still the same in Plone 3. If this is so risky (and we have discovered that this is the case) surely there should be a safer way to do this??

Thanks in advance for your help

Marie Robichon



2009-04-22T09:07:03 ERROR Zope.SiteErrorLog http://plone7.esrf.fr:8080/Intranet/portal_catalog/manage_catalogRebuild
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.CMFPlone.CatalogTool, line 410, in manage_catalogRebuild
  Module Products.CMFPlone.CatalogTool, line 400, in clearFindAndRebuild
  Module OFS.FindSupport, line 257, in ZopeFindAndApply
  Module OFS.FindSupport, line 257, in ZopeFindAndApply
  Module OFS.FindSupport, line 257, in ZopeFindAndApply
  Module OFS.FindSupport, line 257, in ZopeFindAndApply
  Module OFS.FindSupport, line 245, in ZopeFindAndApply
  Module Products.CMFPlone.CatalogTool, line 393, in indexObject
  Module Products.Archetypes.CatalogMultiplex, line 36, in indexObject
  Module Products.CMFPlone.CatalogTool, line 357, in catalog_object
  Module Products.ZCatalog.ZCatalog, line 567, in catalog_object
  Module Products.ZCatalog.Catalog, line 360, in catalogObject
  Module Products.ZCTextIndex.ZCTextIndex, line 187, in index_object
  Module Products.Archetypes.BaseObject, line 529, in SearchableText
  Module Products.Archetypes.ClassGen, line 58, in generatedAccessor
  Module Products.Archetypes.Field, line 1297, in get
  Module Products.Archetypes.BaseUnit, line 87, in transform
  Module Products.Archetypes.BaseUnit, line 179, in getRaw
  Module encodings.cp1252, line 18, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 19795-19796: character maps to <undefined>


_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to