hpinson@..., on 2008-05-22:
> Well... Plone 3.1.1/Zope 2.10.5 is the version. This is a direct migration
> from Plone 2.5.3. Zope was installed using configure, make, and make
> install. An instanace was created and the plone tar.gz downloaded and
> installed to that instance.
>
> I don't see any references to plone.browserlayer in my ZMI. That may
> be the problem, and I will look into what it takes to manually force
> installation of that.
The plone.browserlayer that comes with Plone 3.1.1 does not show up in
the ZMI, at least not in portal_quickinstaller, so that should be fine.
> Here is the traceback.
>
> Traceback (innermost last):
>
> Module ZPublisher.Publish, line 119, in publish
> Module ZPublisher.mapply, line 88, in mapply
> Module ZPublisher.Publish, line 42, in call_object
> Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 574, in
> installProducts
> Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 511, in
> installProduct
> __traceback_info__: ('LinguaPlone',)
> Module Products.GenericSetup.tool, line 390, in
> runAllImportStepsFromProfile
> __traceback_info__: profile-Products.LinguaPlone:LinguaPlone
> Module Products.GenericSetup.tool, line 1179, in
> _runImportStepsFromContext
> Module Products.GenericSetup.tool, line 1093, in _doRunImportStep
> __traceback_info__: linguaplone_reindex
> Module Products.LinguaPlone.setuphandlers, line 38, in
> importReindexLanguageIndex
> Module Products.ZCatalog.ZCatalog, line 468, in reindexIndex
> Module Products.CMFPlone.CatalogTool, line 385, in catalog_object
> Module Products.ZCatalog.ZCatalog, line 535, in catalog_object
> Module Products.ZCatalog.Catalog, line 360, in catalogObject
> Module Products.LinguaPlone.LanguageIndex, line 140, in index_object
> AttributeError: 'NoneType' object has no attribute 'UID'
Hm, that line 140 is this:
cid = obj.getCanonical().UID()
So that last AttributeError means that obj.getCanonical() is None: the
object has no canonical object (the original language) associated with
it and is itself also not the canonical object. That sounds like
something that is not supposed to happen. Perhaps the
reference_catalog has been damaged somehow. That is where the
relations between objects of different languages are stored.
So in the ZMI you could go to reference_catalog and see if anything
seems wrong. I think it should be safe to rebuild the catalog by
clicking on the "Rebuild catalog" tab. Then try reinstalling
LinguaPlone again. Or on the Advanced tab click 'Update catalog'.
Do not click 'Clear catalog' is you will lose all references between
objects then.
Whatever you try, be prepared to restore your backups.
What you could try in code is to change these lines from
Products/LinguaPlone/LanguageIndex.py:
if ITranslatable.isImplementedBy(obj):
cid = obj.getCanonical().UID()
into:
if ITranslatable.isImplementedBy(obj):
canonical = obj.getCanonical()
if canonical is None:
cid = documentId
else:
cid = canonical.UID()
Then restart your zope instance and reinstall LinguaPlone. (Or if you
are comfortable with the pdb you could put a set_trace there and
investigate.)
--
Maurits van Rees |
http://maurits.vanrees.org/ Work |
http://zestsoftware.nl/"This is your day, don't let them take it away." [Barlow Girl]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Plone-i18n mailing list
Plone-i18n@...
https://lists.sourceforge.net/lists/listinfo/plone-i18n