[kupu-checkins] r46305 - kupu/trunk/kupu/plone
fschulze at codespeak.net
fschulze at codespeak.net
Tue Sep 4 16:12:46 CEST 2007
Author: fschulze
Date: Tue Sep 4 16:12:45 2007
New Revision: 46305
Modified:
kupu/trunk/kupu/plone/plonedrawers.py
Log:
The label comes from the translation engine and has nothing to do with the site encoding. Decoding it by hand breaks most of the time and we don't have to decode anyway.
Modified: kupu/trunk/kupu/plone/plonedrawers.py
==============================================================================
--- kupu/trunk/kupu/plone/plonedrawers.py (original)
+++ kupu/trunk/kupu/plone/plonedrawers.py Tue Sep 4 16:12:45 2007
@@ -784,11 +784,10 @@
def getKupuFields(self, filter=1):
"""Returns a list of all kupu editable fields"""
inuse = getToolByName(self, 'portal_catalog').uniqueValuesFor('portal_type')
- site_encoding = getSiteEncoding(self)
for t,f,pt in self._getKupuFields():
if html2captioned.sanitize_portal_type(pt) in inuse or not filter:
yield dict(type=t, name=f.getName(), portal_type=pt,
- label=f.widget.Label(self).decode(site_encoding))
+ label=f.widget.Label(self))
def _getKupuFields(self):
"""Yield all fields which are editable using kupu"""
More information about the kupu-checkins
mailing list