Op 31-05-10 02:19, Alex Clark schreef:
> Hi,
>
> On 2010-05-29, Michael A. Smith<[email protected]>  wrote:
>> Products.CompoundField is a dep of on of our products, and hasn't been 
>> updated for Plone 4. I don't think the original developers are working on it 
>> anymore, so I thought I'd take a crack at it, but I've hit a snag, and would 
>> appreciate any help you can give to get this thing running.
>>
>> The full traceback is at http://plone.org/products/compoundfield/issues/22
>
> The traceback indicates i18n is gone, and so it is in 1.6. If you look at 
> generator/i18n.py in 1.5 at
> the very top you will see this:
>
>      from Products.Archetypes.debug import deprecated
>      deprecated('generator.i18n is deprecated and will be removed in 
> Archetypes 1.6.'
>                 'If your product uses PTS or Localizer use the translate 
> method of '
>                 'the GlobalTranslationService instead. Usually you should 
> simply do '
>                 '"from zope.i18n import translate" and use that method.')
>
> So in other words, change that import to:
>
>      from zope.i18n import translate

Also see http://plone.org/documentation/migration
and specifically 
http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-3-x-to-4.0/updating-add-on-products-for-plone-4.0/manual-calls-to-translate
as the order of the arguments for the translate function may need to change.

-- 
Maurits van Rees
Programmer, Zest Software

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to