2007/9/4, funnyduck <[EMAIL PROTECTED]>:
> TypeError: coercing to Unicode: need string or buffer, LazyProxy
> found
>
>
> Any suggestions?

I'd got same error. This patch for genshi (against trunk) may fix the
'LazyProxy' error. But this is temporary workaround and I don't know right fix.

{{{
Index: genshi/filters/i18n.py
===================================================================
--- genshi/filters/i18n.py      (revision 732)
+++ genshi/filters/i18n.py      (working copy)
@@ -187,7 +187,7 @@

             elif search_text and kind is TEXT:
                 if not msgbuf:
-                    text = data.strip()
+                    text = unicode(data.strip())
                     if text:
                         data = data.replace(text, translate(text))
                     yield kind, data, pos
}}}

And also next patch (against i18n branch) will be needed to see error page.

{{{
diff -r ef073d4b3952 trac/util/translation.py
--- a/trac/util/translation.py  Tue Sep 04 15:48:21 2007 +0900
+++ b/trac/util/translation.py  Tue Sep 04 15:49:28 2007 +0900
@@ -67,8 +67,10 @@ def activate(locale):
     locale_dir = pkg_resources.resource_filename(__name__, '../locale')
     _current.translations = Translations.load(locale_dir, locale)

+_null_translation = NullTranslations()
+
 def get_translations():
-    return getattr(_current, 'translations', NullTranslations)
+    return getattr(_current, 'translations', _null_translation)

 def deactivate():
     del _current.translations
}}}

P.S.
It might be better to talk about this topic in trac-dev, not in trac-users.

-- 
Shun-ichi GOTO

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to