[Setup] Migration: 2.0.5 -> 2.5 portal_atct recatalog error

Tom Stagl tstagl at mac.com
Fri Sep 22 20:17:37 UTC 2006


Hi,

I try to upgrade from Plone 2.0.5 to Plone 2.5. When trying to migrate 
or when I try to run a ATCT recatalog I get following error (this error 
trace is actually from a recatalog ATCT try, but nearly the same is 
also included, when i try to migrate. I am lost, because i do not know 
where to start debugging. It would be great if someone can help me. 
Thanks!


2006-09-22T22:09:22 ERROR Zope.SiteErrorLog 
http://127.0.0.1:7080/clients/herbert/groen/Plone/portal_atct/manage_recatalog
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 Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 110, in _exec
  Module Products.CacheSetup.patch_cmf, line 92, in PT_pt_render
   - <PageTemplateFile at 
/clients/herbert/groen/Plone/portal_atct/manage_recatalog>
  Module TAL.TALInterpreter, line 238, in __call__
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 715, in do_condition
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 507, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: manage_recatalog
   - Line 95, Column 2
   - Expression: <PythonExpr here.recatalogATCTTypes(remove)>
   - Names:
      {'container': <ATCTTool at /clients/herbert/groen/Plone/portal_atct>,
       'context': <ATCTTool at /clients/herbert/groen/Plone/portal_atct>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x249f968>,
       'here': <ATCTTool at /clients/herbert/groen/Plone/portal_atct>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x740cd28>,
       'modules': 
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 
0x248eee0>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 
0x740cd28>,
       'request': <HTTPRequest, 
URL=http://127.0.0.1:7080/clients/herbert/groen/Plone/portal_atct/manage_recatalog>,
 

      'root': <Application at >,
       'template': <PageTemplateFile at 
/clients/herbert/groen/Plone/portal_atct/manage_recatalog>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: here.recatalogATCTTypes(remove)
  Module Python expression "here.recatalogATCTTypes(remove)", line 1, 
in <expression>
  Module Products.ATContentTypes.tool.migration, line 124, in 
recatalogATCTTypes
  Module Products.ATContentTypes.tool.migration, line 509, in _catalogATCTtypes
  Module Products.ATContentTypes.tool.migration, line 486, in 
_catalogTypesByMetatype
  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 329, in catalog_object
  Module Products.CacheSetup.patch, line 87, in catalog_object
  Module Products.CacheSetup.patch_utils, line 6, in call
  Module Products.ZCatalog.ZCatalog, line 565, in catalog_object
  Module Products.ZCatalog.Catalog, line 339, in catalogObject
  Module Products.ZCatalog.Catalog, line 277, in updateMetadata
  Module Products.ZCatalog.Catalog, line 417, in recordify
  Module Products.Archetypes.ClassGen, line 58, in generatedAccessor
  Module Products.Archetypes.Field, line 1276, in get
  Module Products.Archetypes.Field, line 1031, in _wrapValue
  Module Products.Archetypes.Field, line 1166, in _make_file
  Module Products.Archetypes.BaseUnit, line 34, in __init__
  Module Products.Archetypes.BaseUnit, line 56, in update
  Module Products.MimetypesRegistry.MimeTypesRegistry, line 370, in __call__
  Module Products.MimetypesRegistry.MimeTypesRegistry, line 319, in classify
  Module Products.MimetypesRegistry.mime_types.mtr_mimetypes, line 82, 
in classify
  Module sre, line 134, in search
TypeError: expected string or buffer

Details about my installation:
Zope Version
(Zope 2.9.3-, python 2.4.3, darwin)
Python Version
2.4.3 (#1, Jun 19 2006, 07:47:54) [GCC 4.0.1 (Apple Computer, Inc. build 5332)]
System Platform
darwin
SOFTWARE_HOME
/opt/Plone-2.5/lib/python
ZOPE_HOME
/opt/Plone-2.5
INSTANCE_HOME
/opt/Plone-2.5/Instance
CLIENT_HOME
/opt/Plone-2.5/Instance/var
Network Services
ZServer.HTTPServer.zhttp_server (Port: 7080)
Process Id
6624 (30782976)
Running For
42 min 35 sec

Core Plone information
>>> 	•	CMF: CMF-1.6.1
>>> 	•	Debug mode: No
>>> 	•	Platform: darwin
>>> 	•	Plone File System: 2.5
>>> 	•	Plone Instance: 2.0.5
>>> 	•	Python: 2.4.3 (#1, Jun 19 2006, 07:47:54) [GCC 4.0.1 (Apple 
>>> Computer, Inc. build 5332)]
>>> 	•	Zope: (Zope 2.9.3-, python 2.4.3, darwin)







More information about the Setup mailing list