Ignore:
Timestamp:
Dec 7, 2009 2:10:37 PM (14 years ago)
Author:
koval
Message:

manually merged fix to ticket #116 from branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.portlet.cumulus/trunk/quintagroup/portlet/cumulus/blog.py

    r1039 r1443  
    2020        tags = [] 
    2121        for topic in topics: 
    22             tags.append((topic.getTitle().decode(self.default_charset), len(topic), topic.absolute_url())) 
     22            title = topic.getTitle() 
     23            # Before this issue http://plone.org/products/quills/issues/209 in 
     24            # Quills was fixed, topic title was not a unicode string 
     25            if not isinstance(title, unicode): 
     26                title = title.decode(self.default_charset) 
     27            tags.append((title, len(topic), topic.absolute_url())) 
    2328 
    2429        return tags 
Note: See TracChangeset for help on using the changeset viewer.