Changeset 3823

Show
Ignore:
Timestamp:
06/11/08 04:57:24 (7 months ago)
Author:
osimons
Message:

FullBlogPlugin: Fix for Python 2.3 compatibility with itemgetter.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fullblogplugin/0.11/tracfullblog/model.py

    r3261 r3823  
    1111 
    1212import datetime 
    13 from operator import itemgetter 
     13from trac.util.compat import itemgetter 
    1414 
    1515from trac.attachment import Attachment 
     
    148148    Instantiate BlogComment objects to get further details of each. 
    149149    Example of sorting the output by time, newest first: 
    150         from trac.util.compat import sorted 
    151         from operator import itemgetter 
     150        from trac.util.compat import sorted, itemgetter 
    152151        comments = get_blog_comments(env) 
    153152        sorted(comments, key=itemgetter(4), reverse=True) """ 
  • fullblogplugin/0.11/tracfullblog/web_ui.py

    r3131 r3823  
    1313import re 
    1414from pkg_resources import resource_filename 
    15 from operator import itemgetter 
     15from trac.util.compat import itemgetter 
    1616 
    1717# Trac and Genshi imports