r13780 - Products.DataGridField/branches/quadra-columns_from_methods-plone4.x/Products/DataGridField
"Jonathan Riboux" <[email protected]> Thu, 25 Aug 2011 12:48:22 +0000
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: jriboux
Date: Thu Aug 25 12:48:22 2011
New Revision: 13780
Modified:
Products.DataGridField/branches/quadra-columns_from_methods-plone4.x/Products/DataGridField/DataGridWidget.py
Log:
getMsgId method does no longer exists, now uses _i18n_msgids dict
Modified: Products.DataGridField/branches/quadra-columns_from_methods-plone4.x/Products/DataGridField/DataGridWidget.py
==============================================================================
--- Products.DataGridField/branches/quadra-columns_from_methods-plone4.x/Products/DataGridField/DataGridWidget.py (original)
+++ Products.DataGridField/branches/quadra-columns_from_methods-plone4.x/Products/DataGridField/DataGridWidget.py Thu Aug 25 12:48:22 2011
@@ -133,8 +133,7 @@
"""
if item == None or item == '':
return ""
- return context.translate(vocab.getMsgId(item), default=vocab.getValue(item))
-
+ return context.translate(vocab._i18n_msgids.get(item, item), default=item)
security.declarePublic('isAutoInsertEnabled')
def isAutoInsertEnabled(self):
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev