[quills-dev] [Collective-checkins] r49825 - Quills/branches/1.5
quills-dev at lists.etria.com quills-dev at lists.etria.comFri Sep 21 08:59:21 UTC 2007
- Previous message: [quills-dev] [Collective-checkins] r49800 - Quills/trunk/tests
- Next message: [quills-dev] [Collective-checkins] r49834 - in quills.core/trunk/quills/core: browser interfaces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: erral
Date: Fri Sep 21 08:59:21 2007
New Revision: 49825
Modified:
Quills/branches/1.5/WeblogArchive.py
Log:
return utf8-encoded strings instead of unicode ones. It created a weird UnicodeDecodeErrors when creating month archives
Modified: Quills/branches/1.5/WeblogArchive.py
==============================================================================
--- Quills/branches/1.5/WeblogArchive.py (original)
+++ Quills/branches/1.5/WeblogArchive.py Fri Sep 21 08:59:21 2007
@@ -21,7 +21,11 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
###############################################################################
-from Products.Archetypes.public import *
+try:
+ from Products.LinguaPlone.public import *
+except ImportError:
+ from Products.Archetypes.public import *
+
from Products.Archetypes.Marshall import PrimaryFieldMarshaller
from Products.CMFCore import permissions
from config import PROJECTNAME
@@ -84,7 +88,7 @@
t = self.ArchiveType()
if t == "root":
- return self.utranslate(u"Archive")
+ return self.utranslate(u"Archive").encode('utf-8')
date = self.ArchiveDate()
@@ -96,7 +100,7 @@
if t == "year":
return year
elif t == "month":
- return self.utranslate(monthname_msgid(month))
+ return self.utranslate(monthname_msgid(month)).encode('utf-8')
elif t == "day":
return day
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Collective-checkins mailing list
Collective-checkins at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/collective-checkins
- Previous message: [quills-dev] [Collective-checkins] r49800 - Quills/trunk/tests
- Next message: [quills-dev] [Collective-checkins] r49834 - in quills.core/trunk/quills/core: browser interfaces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list