Skip to content.

Etria Lists

 

[quills-dev] [Quills Issue Tracker] New issue: #74 - weblog.getCategories() doesn't return a sorted list

webmaster at plone.org webmaster at plone.org
Sat Dec 2 06:30:51 UTC 2006


A new issue has been submitted to the **Issue tracker**
tracker by **Olivier Ozoux** and awaits confirmation.

Issue Information
-----------------

Issue
  weblog.getCategories() doesn't return a sorted list (http://plone.org/products/quills/issues/74)


**Issue Details**::

    The getCategories() function doesn't return an alphabetically
    sorted list of keywords. this fixes it:        def
    _getKeywordsForBlogEntries(self):          """Return a sequence of
    all keywords that are associatd with          IWeblogEntry
    instances contained in this IWeblog.          """          entries
    = self.getAllEntries()          # Use dict rather than list to
    avoid duplicates          keywords = {}          for entry in
    entries:              for kw in entry.Subject:
    keywords[kw] = None          keys = keywords.keys()
    keys.sort()          return keys


\* This is an automated email, please do not reply - plone.org Administrator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.etria.com/pipermail/quills-dev/attachments/20061202/a76a4e23/attachment.htm


More information about the quills-dev mailing list